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)
commit772d233f5dec86e38a96e58cc995e7b04ab4ec68
tree05cd8e310d7d2abeb77faa1314d67fa188627f17
parent4734b7ed79e1230602927a38bc4d04dbe9dd09c1
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