]> git.baikalelectronics.ru Git - kernel.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)
commit36f203f47843d1f9da135552e747479b602ab383
tree734e6916b0662d77a1e3a60ffb3b08418e16231a
parentdb8d635e4057506cf9358193ea76cca266d0199c
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