]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: Load only necessary csums into list in scrub
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 22 Jul 2015 05:14:47 +0000 (13:14 +0800)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:07:11 +0000 (07:07 -0700)
commitfe8cf654b1ccf7f0b49cc0de9e6ad8a56529e384
tree734e6916b0662d77a1e3a60ffb3b08418e16231a
parenta0dd59de3c73fbb3b738eaf333732f2f27254a2c
btrfs: Load only necessary csums into list in scrub

We need not load csum of whole strip in scrub because strip is trimed
before use, it is to say, what we really need to calculate csum is
data between [extent_logical, extent_len).

This patch changed to use above segment for btrfs_lookup_csums_range()
in scrub_stripe()

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c