summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-05-03 10:08:54 +0800
committerDavid Sterba <dsterba@suse.com>2021-06-21 15:19:05 +0200
commit08508fea07cdf6f62e61bae85d3af55433a16f98 (patch)
tree3cc939cf768fd77e62ffa8a2cc73fae2179f0131 /fs/btrfs/extent_io.h
parentf4dcfb30452631f7f308c144e1fd4d8a6ad7111b (diff)
downloadlinux-08508fea07cdf6f62e61bae85d3af55433a16f98.tar.gz
linux-08508fea07cdf6f62e61bae85d3af55433a16f98.tar.bz2
linux-08508fea07cdf6f62e61bae85d3af55433a16f98.zip
btrfs: make btrfs_verify_data_csum() to return a bitmap
This will provide the basis for later per-sector repair for subpage, while still keeping the existing code happy. As if all csums match, the return value will be 0, same as now. Only when csum mismatches, the return value is different. The new return value will be a bitmap, for 4K sectorsize and 4K page size, it will be either 1, instead of the -EIO (which is not used directly by the callers, no effective change). But for 4K sectorsize and 64K page size, aka subpage case, since the bvec can contain multiple sectors, knowing which sectors are corrupted will allow us to submit repair only for corrupted sectors. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
0 files changed, 0 insertions, 0 deletions