Lines Matching refs:page_count
96 int page_count; member
103 int page_count; member
549 for (i = 0; i < sbio->page_count; i++) { in scrub_free_ctx()
600 sbio->page_count = 0; in scrub_setup_ctx()
746 WARN_ON(sblock->page_count < 1); in scrub_print_warning()
842 BUG_ON(sblock_to_check->page_count < 1); in scrub_handle_errored_block()
1029 if (!sblocks_for_recheck[mirror_index].page_count) in scrub_handle_errored_block()
1040 if (!sblocks_for_recheck[1].page_count) in scrub_handle_errored_block()
1094 for (page_num = 0; page_num < sblock_bad->page_count; in scrub_handle_errored_block()
1116 sblocks_for_recheck[mirror_index].page_count > 0; in scrub_handle_errored_block()
1204 for (page_index = 0; page_index < sblock->page_count; in scrub_handle_errored_block()
1271 u64 length = original_sblock->page_count * PAGE_SIZE; in scrub_setup_recheck_block()
1368 BUG_ON(page_index >= original_sblock->page_count); in scrub_setup_recheck_block()
1374 sblock->page_count++; in scrub_setup_recheck_block()
1434 for (page_num = 0; page_num < sblock->page_count; page_num++) { in scrub_recheck_block_on_raid56()
1452 for (page_num = 0; page_num < sblock->page_count; page_num++) in scrub_recheck_block_on_raid56()
1477 for (page_num = 0; page_num < sblock->page_count; page_num++) { in scrub_recheck_block()
1535 for (page_num = 0; page_num < sblock_bad->page_count; page_num++) { in scrub_repair_block_from_good_copy()
1605 for (page_num = 0; page_num < sblock->page_count; page_num++) { in scrub_write_block_to_dev_replace()
1646 sctx->wr_curr_bio->page_count = 0; in scrub_add_page_to_wr_bio()
1649 if (sbio->page_count == 0) { in scrub_add_page_to_wr_bio()
1667 } else if (sbio->physical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_wr_bio()
1669 sbio->logical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_wr_bio()
1677 if (sbio->page_count < 1) { in scrub_add_page_to_wr_bio()
1687 sbio->pagev[sbio->page_count] = spage; in scrub_add_page_to_wr_bio()
1689 sbio->page_count++; in scrub_add_page_to_wr_bio()
1690 if (sbio->page_count == sctx->pages_per_wr_bio) in scrub_add_page_to_wr_bio()
1733 WARN_ON(sbio->page_count > SCRUB_PAGES_PER_WR_BIO); in scrub_wr_bio_end_io_worker()
1738 for (i = 0; i < sbio->page_count; i++) { in scrub_wr_bio_end_io_worker()
1746 for (i = 0; i < sbio->page_count; i++) in scrub_wr_bio_end_io_worker()
1771 WARN_ON(sblock->page_count < 1); in scrub_checksum()
1800 BUG_ON(sblock->page_count < 1); in scrub_checksum_data()
1822 BUG_ON(index >= sblock->page_count); in scrub_checksum_data()
1853 BUG_ON(sblock->page_count < 1); in scrub_checksum_tree_block()
1892 BUG_ON(index >= sblock->page_count); in scrub_checksum_tree_block()
1927 BUG_ON(sblock->page_count < 1); in scrub_checksum_super()
1955 BUG_ON(index >= sblock->page_count); in scrub_checksum_super()
2000 for (i = 0; i < sblock->page_count; i++) in scrub_block_put()
2050 sctx->bios[sctx->curr]->page_count = 0; in scrub_add_page_to_rd_bio()
2058 if (sbio->page_count == 0) { in scrub_add_page_to_rd_bio()
2076 } else if (sbio->physical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_rd_bio()
2078 sbio->logical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_rd_bio()
2085 sbio->pagev[sbio->page_count] = spage; in scrub_add_page_to_rd_bio()
2088 if (sbio->page_count < 1) { in scrub_add_page_to_rd_bio()
2099 sbio->page_count++; in scrub_add_page_to_rd_bio()
2100 if (sbio->page_count == sctx->pages_per_rd_bio) in scrub_add_page_to_rd_bio()
2165 u64 length = sblock->page_count * PAGE_SIZE; in scrub_missing_raid56_pages()
2199 for (i = 0; i < sblock->page_count; i++) { in scrub_missing_raid56_pages()
2273 sblock->page_count++; in scrub_pages()
2283 WARN_ON(sblock->page_count == 0); in scrub_pages()
2291 for (index = 0; index < sblock->page_count; index++) { in scrub_pages()
2328 BUG_ON(sbio->page_count > SCRUB_PAGES_PER_RD_BIO); in scrub_bio_end_io_worker()
2330 for (i = 0; i < sbio->page_count; i++) { in scrub_bio_end_io_worker()
2339 for (i = 0; i < sbio->page_count; i++) { in scrub_bio_end_io_worker()
2427 u64 end = sblock->pagev[sblock->page_count - 1]->logical + in scrub_block_complete()
2583 sblock->page_count++; in scrub_pages_for_parity()
2592 WARN_ON(sblock->page_count == 0); in scrub_pages_for_parity()
2593 for (index = 0; index < sblock->page_count; index++) { in scrub_pages_for_parity()