]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Reset sblock->xxx_error stats before calling scrub_recheck_block_checksum
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 24 Aug 2015 13:10:18 +0000 (21:10 +0800)
committerChris Mason <clm@fb.com>
Wed, 11 Nov 2015 03:27:03 +0000 (19:27 -0800)
commit5f0bebdabbdd5f5cb854b8120bbc1fa99413bc34
tree05cd8e310d7d2abeb77faa1314d67fa188627f17
parenta660388882a5b59fab4196de45b378d5c60439ae
btrfs: Reset sblock->xxx_error stats before calling scrub_recheck_block_checksum

We should reset sblock->xxx_error stats before calling
scrub_recheck_block_checksum().

Current code run correctly because all sblock are allocated by
k[cz]alloc(), and the error stats are not got changed.

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