Lines Matching refs:sblock_to_check
987 static int scrub_handle_errored_block(struct scrub_block *sblock_to_check) in scrub_handle_errored_block() argument
989 struct scrub_ctx *sctx = sblock_to_check->sctx; in scrub_handle_errored_block()
990 struct btrfs_device *dev = sblock_to_check->dev; in scrub_handle_errored_block()
1008 BUG_ON(sblock_to_check->sector_count < 1); in scrub_handle_errored_block()
1010 if (sblock_to_check->sectors[0]->flags & BTRFS_EXTENT_FLAG_SUPER) { in scrub_handle_errored_block()
1016 scrub_print_warning("super block error", sblock_to_check); in scrub_handle_errored_block()
1023 logical = sblock_to_check->logical; in scrub_handle_errored_block()
1024 ASSERT(sblock_to_check->mirror_num); in scrub_handle_errored_block()
1025 failed_mirror_index = sblock_to_check->mirror_num - 1; in scrub_handle_errored_block()
1026 is_metadata = !(sblock_to_check->sectors[0]->flags & in scrub_handle_errored_block()
1028 have_csum = sblock_to_check->sectors[0]->have_csum; in scrub_handle_errored_block()
1115 ret = scrub_setup_recheck_block(sblock_to_check, sblocks_for_recheck); in scrub_handle_errored_block()
1142 sblock_to_check->data_corrected = 1; in scrub_handle_errored_block()
1155 scrub_print_warning("i/o error", sblock_to_check); in scrub_handle_errored_block()
1162 scrub_print_warning("checksum error", sblock_to_check); in scrub_handle_errored_block()
1171 sblock_to_check); in scrub_handle_errored_block()
1357 sblock_to_check->data_corrected = 1; in scrub_handle_errored_block()