Lines Matching refs:page_count
97 int page_count; member
104 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()
745 WARN_ON(sblock->page_count < 1); in scrub_print_warning()
841 BUG_ON(sblock_to_check->page_count < 1); in scrub_handle_errored_block()
1028 if (!sblocks_for_recheck[mirror_index].page_count) in scrub_handle_errored_block()
1039 if (!sblocks_for_recheck[1].page_count) in scrub_handle_errored_block()
1093 for (page_num = 0; page_num < sblock_bad->page_count; in scrub_handle_errored_block()
1115 sblocks_for_recheck[mirror_index].page_count > 0; in scrub_handle_errored_block()
1203 for (page_index = 0; page_index < sblock->page_count; in scrub_handle_errored_block()
1270 u64 length = original_sblock->page_count * PAGE_SIZE; in scrub_setup_recheck_block()
1367 BUG_ON(page_index >= original_sblock->page_count); in scrub_setup_recheck_block()
1373 sblock->page_count++; in scrub_setup_recheck_block()
1433 for (page_num = 0; page_num < sblock->page_count; page_num++) { in scrub_recheck_block_on_raid56()
1451 for (page_num = 0; page_num < sblock->page_count; page_num++) in scrub_recheck_block_on_raid56()
1476 for (page_num = 0; page_num < sblock->page_count; page_num++) { in scrub_recheck_block()
1534 for (page_num = 0; page_num < sblock_bad->page_count; page_num++) { in scrub_repair_block_from_good_copy()
1604 for (page_num = 0; page_num < sblock->page_count; page_num++) { in scrub_write_block_to_dev_replace()
1641 sctx->wr_curr_bio->page_count = 0; in scrub_add_page_to_wr_bio()
1644 if (sbio->page_count == 0) { in scrub_add_page_to_wr_bio()
1662 } else if (sbio->physical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_wr_bio()
1664 sbio->logical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_wr_bio()
1672 if (sbio->page_count < 1) { in scrub_add_page_to_wr_bio()
1682 sbio->pagev[sbio->page_count] = spage; in scrub_add_page_to_wr_bio()
1684 sbio->page_count++; in scrub_add_page_to_wr_bio()
1685 if (sbio->page_count == sctx->pages_per_wr_bio) in scrub_add_page_to_wr_bio()
1728 WARN_ON(sbio->page_count > SCRUB_PAGES_PER_WR_BIO); in scrub_wr_bio_end_io_worker()
1733 for (i = 0; i < sbio->page_count; i++) { in scrub_wr_bio_end_io_worker()
1741 for (i = 0; i < sbio->page_count; i++) in scrub_wr_bio_end_io_worker()
1766 WARN_ON(sblock->page_count < 1); in scrub_checksum()
1792 BUG_ON(sblock->page_count < 1); in scrub_checksum_data()
1822 BUG_ON(sblock->page_count < 1); in scrub_checksum_tree_block()
1877 BUG_ON(sblock->page_count < 1); in scrub_checksum_super()
1932 for (i = 0; i < sblock->page_count; i++) in scrub_block_put()
1982 sctx->bios[sctx->curr]->page_count = 0; in scrub_add_page_to_rd_bio()
1990 if (sbio->page_count == 0) { in scrub_add_page_to_rd_bio()
2008 } else if (sbio->physical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_rd_bio()
2010 sbio->logical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_rd_bio()
2017 sbio->pagev[sbio->page_count] = spage; in scrub_add_page_to_rd_bio()
2020 if (sbio->page_count < 1) { in scrub_add_page_to_rd_bio()
2031 sbio->page_count++; in scrub_add_page_to_rd_bio()
2032 if (sbio->page_count == sctx->pages_per_rd_bio) in scrub_add_page_to_rd_bio()
2097 u64 length = sblock->page_count * PAGE_SIZE; in scrub_missing_raid56_pages()
2131 for (i = 0; i < sblock->page_count; i++) { in scrub_missing_raid56_pages()
2205 sblock->page_count++; in scrub_pages()
2215 WARN_ON(sblock->page_count == 0); in scrub_pages()
2223 for (index = 0; index < sblock->page_count; index++) { in scrub_pages()
2260 BUG_ON(sbio->page_count > SCRUB_PAGES_PER_RD_BIO); in scrub_bio_end_io_worker()
2262 for (i = 0; i < sbio->page_count; i++) { in scrub_bio_end_io_worker()
2271 for (i = 0; i < sbio->page_count; i++) { in scrub_bio_end_io_worker()
2359 u64 end = sblock->pagev[sblock->page_count - 1]->logical + in scrub_block_complete()
2515 sblock->page_count++; in scrub_pages_for_parity()
2524 WARN_ON(sblock->page_count == 0); in scrub_pages_for_parity()
2525 for (index = 0; index < sblock->page_count; index++) { in scrub_pages_for_parity()