Lines Matching refs:sblock_to_check
209 static int scrub_handle_errored_block(struct scrub_block *sblock_to_check);
828 static int scrub_handle_errored_block(struct scrub_block *sblock_to_check) in scrub_handle_errored_block() argument
830 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
847 BUG_ON(sblock_to_check->page_count < 1); in scrub_handle_errored_block()
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()
928 ret = scrub_setup_recheck_block(sblock_to_check, sblocks_for_recheck); in scrub_handle_errored_block()
955 sblock_to_check->data_corrected = 1; in scrub_handle_errored_block()
968 scrub_print_warning("i/o error", sblock_to_check); in scrub_handle_errored_block()
975 scrub_print_warning("checksum error", sblock_to_check); in scrub_handle_errored_block()
984 sblock_to_check); in scrub_handle_errored_block()
1173 sblock_to_check->data_corrected = 1; in scrub_handle_errored_block()