Lines Matching refs:pagev
90 struct scrub_page *pagev[SCRUB_PAGES_PER_WR_BIO]; member
92 struct scrub_page *pagev[SCRUB_PAGES_PER_RD_BIO]; member
100 struct scrub_page *pagev[SCRUB_MAX_PAGES_PER_BLOCK]; member
556 WARN_ON(!sbio->pagev[i]->page); in scrub_free_ctx()
557 scrub_block_put(sbio->pagev[i]->sblock); in scrub_free_ctx()
753 dev = sblock->pagev[0]->dev; in scrub_print_warning()
760 swarn.physical = sblock->pagev[0]->physical; in scrub_print_warning()
761 swarn.logical = sblock->pagev[0]->logical; in scrub_print_warning()
849 if (sblock_to_check->pagev[0]->flags & BTRFS_EXTENT_FLAG_SUPER) { in scrub_handle_errored_block()
860 logical = sblock_to_check->pagev[0]->logical; in scrub_handle_errored_block()
861 BUG_ON(sblock_to_check->pagev[0]->mirror_num < 1); in scrub_handle_errored_block()
862 failed_mirror_index = sblock_to_check->pagev[0]->mirror_num - 1; in scrub_handle_errored_block()
863 is_metadata = !(sblock_to_check->pagev[0]->flags & in scrub_handle_errored_block()
865 have_csum = sblock_to_check->pagev[0]->have_csum; in scrub_handle_errored_block()
866 dev = sblock_to_check->pagev[0]->dev; in scrub_handle_errored_block()
1020 if (!scrub_is_page_on_raid56(sblock_bad->pagev[0])) { in scrub_handle_errored_block()
1028 struct scrub_recover *r = sblock_bad->pagev[0]->recover; in scrub_handle_errored_block()
1039 sblock_other->pagev[0]->mirror_num = 1 + mirror_index; in scrub_handle_errored_block()
1090 struct scrub_page *page_bad = sblock_bad->pagev[page_num]; in scrub_handle_errored_block()
1097 if (scrub_is_page_on_raid56(sblock_bad->pagev[0])) { in scrub_handle_errored_block()
1113 pagev[page_num]->io_error) { in scrub_handle_errored_block()
1200 sblock->pagev[page_index]->sblock = NULL; in scrub_handle_errored_block()
1201 recover = sblock->pagev[page_index]->recover; in scrub_handle_errored_block()
1204 sblock->pagev[page_index]->recover = in scrub_handle_errored_block()
1207 scrub_page_put(sblock->pagev[page_index]); in scrub_handle_errored_block()
1265 u64 logical = original_sblock->pagev[0]->logical; in scrub_setup_recheck_block()
1266 u64 generation = original_sblock->pagev[0]->generation; in scrub_setup_recheck_block()
1267 u64 flags = original_sblock->pagev[0]->flags; in scrub_setup_recheck_block()
1268 u64 have_csum = original_sblock->pagev[0]->have_csum; in scrub_setup_recheck_block()
1337 sblock->pagev[page_index] = page; in scrub_setup_recheck_block()
1345 original_sblock->pagev[0]->csum, in scrub_setup_recheck_block()
1363 original_sblock->pagev[page_index]-> in scrub_setup_recheck_block()
1401 mirror_num = page->sblock->pagev[0]->mirror_num; in scrub_submit_raid56_bio_wait()
1415 struct scrub_page *first_page = sblock->pagev[0]; in scrub_recheck_block_on_raid56()
1428 struct scrub_page *page = sblock->pagev[page_num]; in scrub_recheck_block_on_raid56()
1446 sblock->pagev[page_num]->io_error = 1; in scrub_recheck_block_on_raid56()
1467 if (!retry_failed_mirror && scrub_is_page_on_raid56(sblock->pagev[0])) in scrub_recheck_block()
1472 struct scrub_page *page = sblock->pagev[page_num]; in scrub_recheck_block()
1516 if (sblock->pagev[0]->flags & BTRFS_EXTENT_FLAG_DATA) in scrub_recheck_block_checksum()
1545 struct scrub_page *page_bad = sblock_bad->pagev[page_num]; in scrub_repair_page_from_good_copy()
1546 struct scrub_page *page_good = sblock_good->pagev[page_num]; in scrub_repair_page_from_good_copy()
1612 struct scrub_page *spage = sblock->pagev[page_num]; in scrub_write_page_to_dev_replace()
1693 sbio->pagev[sbio->page_count] = spage; in scrub_add_page_to_wr_bio()
1746 struct scrub_page *spage = sbio->pagev[i]; in scrub_wr_bio_end_io_worker()
1755 scrub_page_put(sbio->pagev[i]); in scrub_wr_bio_end_io_worker()
1780 flags = sblock->pagev[0]->flags; in scrub_checksum()
1808 if (!sblock->pagev[0]->have_csum) in scrub_checksum_data()
1811 on_disk_csum = sblock->pagev[0]->csum; in scrub_checksum_data()
1812 page = sblock->pagev[0]->page; in scrub_checksum_data()
1827 BUG_ON(!sblock->pagev[index]->page); in scrub_checksum_data()
1828 page = sblock->pagev[index]->page; in scrub_checksum_data()
1855 page = sblock->pagev[0]->page; in scrub_checksum_tree_block()
1865 if (sblock->pagev[0]->logical != btrfs_stack_header_bytenr(h)) in scrub_checksum_tree_block()
1868 if (sblock->pagev[0]->generation != btrfs_stack_header_generation(h)) { in scrub_checksum_tree_block()
1873 if (!scrub_check_fsid(h->fsid, sblock->pagev[0])) in scrub_checksum_tree_block()
1894 BUG_ON(!sblock->pagev[index]->page); in scrub_checksum_tree_block()
1895 page = sblock->pagev[index]->page; in scrub_checksum_tree_block()
1925 page = sblock->pagev[0]->page; in scrub_checksum_super()
1930 if (sblock->pagev[0]->logical != btrfs_super_bytenr(s)) in scrub_checksum_super()
1933 if (sblock->pagev[0]->generation != btrfs_super_generation(s)) in scrub_checksum_super()
1936 if (!scrub_check_fsid(s->fsid, sblock->pagev[0])) in scrub_checksum_super()
1953 BUG_ON(!sblock->pagev[index]->page); in scrub_checksum_super()
1954 page = sblock->pagev[index]->page; in scrub_checksum_super()
1974 btrfs_dev_stat_inc_and_print(sblock->pagev[0]->dev, in scrub_checksum_super()
1977 btrfs_dev_stat_inc_and_print(sblock->pagev[0]->dev, in scrub_checksum_super()
1998 scrub_page_put(sblock->pagev[i]); in scrub_block_put()
2082 sbio->pagev[sbio->page_count] = spage; in scrub_add_page_to_rd_bio()
2124 logical = sblock->pagev[0]->logical; in scrub_missing_raid56_worker()
2125 dev = sblock->pagev[0]->dev; in scrub_missing_raid56_worker()
2163 u64 logical = sblock->pagev[0]->logical; in scrub_missing_raid56_pages()
2197 struct scrub_page *spage = sblock->pagev[i]; in scrub_missing_raid56_pages()
2256 sblock->pagev[index] = spage; in scrub_pages()
2290 struct scrub_page *spage = sblock->pagev[index]; in scrub_pages()
2329 struct scrub_page *spage = sbio->pagev[i]; in scrub_bio_end_io_worker()
2338 struct scrub_page *spage = sbio->pagev[i]; in scrub_bio_end_io_worker()
2424 u64 start = sblock->pagev[0]->logical; in scrub_block_complete()
2425 u64 end = sblock->pagev[sblock->page_count - 1]->logical + in scrub_block_complete()
2564 sblock->pagev[index] = spage; in scrub_pages_for_parity()
2592 struct scrub_page *spage = sblock->pagev[index]; in scrub_pages_for_parity()