sblock_bad 218 fs/btrfs/scrub.c static int scrub_repair_block_from_good_copy(struct scrub_block *sblock_bad, sblock_bad 220 fs/btrfs/scrub.c static int scrub_repair_page_from_good_copy(struct scrub_block *sblock_bad, sblock_bad 832 fs/btrfs/scrub.c struct scrub_block *sblock_bad; sblock_bad 944 fs/btrfs/scrub.c sblock_bad = sblocks_for_recheck + failed_mirror_index; sblock_bad 947 fs/btrfs/scrub.c scrub_recheck_block(fs_info, sblock_bad, 1); sblock_bad 949 fs/btrfs/scrub.c if (!sblock_bad->header_error && !sblock_bad->checksum_error && sblock_bad 950 fs/btrfs/scrub.c sblock_bad->no_io_error_seen) { sblock_bad 965 fs/btrfs/scrub.c scrub_write_block_to_dev_replace(sblock_bad); sblock_bad 969 fs/btrfs/scrub.c if (!sblock_bad->no_io_error_seen) { sblock_bad 976 fs/btrfs/scrub.c } else if (sblock_bad->checksum_error) { sblock_bad 984 fs/btrfs/scrub.c } else if (sblock_bad->header_error) { sblock_bad 991 fs/btrfs/scrub.c if (sblock_bad->generation_error) sblock_bad 1026 fs/btrfs/scrub.c if (!scrub_is_page_on_raid56(sblock_bad->pagev[0])) { sblock_bad 1034 fs/btrfs/scrub.c struct scrub_recover *r = sblock_bad->pagev[0]->recover; sblock_bad 1059 fs/btrfs/scrub.c sblock_bad, sblock_other); sblock_bad 1066 fs/btrfs/scrub.c if (sblock_bad->no_io_error_seen && !sctx->is_dev_replace) sblock_bad 1094 fs/btrfs/scrub.c for (page_num = 0; page_num < sblock_bad->page_count; sblock_bad 1096 fs/btrfs/scrub.c struct scrub_page *page_bad = sblock_bad->pagev[page_num]; sblock_bad 1103 fs/btrfs/scrub.c if (scrub_is_page_on_raid56(sblock_bad->pagev[0])) { sblock_bad 1138 fs/btrfs/scrub.c sblock_other = sblock_bad; sblock_bad 1147 fs/btrfs/scrub.c ret = scrub_repair_page_from_good_copy(sblock_bad, sblock_bad 1168 fs/btrfs/scrub.c scrub_recheck_block(fs_info, sblock_bad, 1); sblock_bad 1169 fs/btrfs/scrub.c if (!sblock_bad->header_error && sblock_bad 1170 fs/btrfs/scrub.c !sblock_bad->checksum_error && sblock_bad 1171 fs/btrfs/scrub.c sblock_bad->no_io_error_seen) sblock_bad 1529 fs/btrfs/scrub.c static int scrub_repair_block_from_good_copy(struct scrub_block *sblock_bad, sblock_bad 1535 fs/btrfs/scrub.c for (page_num = 0; page_num < sblock_bad->page_count; page_num++) { sblock_bad 1538 fs/btrfs/scrub.c ret_sub = scrub_repair_page_from_good_copy(sblock_bad, sblock_bad 1548 fs/btrfs/scrub.c static int scrub_repair_page_from_good_copy(struct scrub_block *sblock_bad, sblock_bad 1552 fs/btrfs/scrub.c struct scrub_page *page_bad = sblock_bad->pagev[page_num]; sblock_bad 1554 fs/btrfs/scrub.c struct btrfs_fs_info *fs_info = sblock_bad->sctx->fs_info; sblock_bad 1558 fs/btrfs/scrub.c if (force_write || sblock_bad->header_error || sblock_bad 1559 fs/btrfs/scrub.c sblock_bad->checksum_error || page_bad->io_error) {