]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not inc uncorrectable_errors counter on ro scrubs
authorIlya Dryomov <idryomov@gmail.com>
Sun, 3 Nov 2013 17:06:38 +0000 (19:06 +0200)
committerChris Mason <chris.mason@fusionio.com>
Thu, 21 Nov 2013 01:41:38 +0000 (20:41 -0500)
commit953b8dbaeca7fc78981bd1dd4a89821c1000cddd
tree8340a2d3838b999c63e68a92b7efa28b9403fc5b
parent688c5211f76a11c5a5fc8f6c1d6c2aee158fdc60
Btrfs: do not inc uncorrectable_errors counter on ro scrubs

Currently if we discover an error when scrubbing in ro mode we a)
blindly increment the uncorrectable_errors counter, and b) spam the
dmesg with the 'unable to fixup (regular) error at ...' message, even
though a) we haven't tried to determine if the error is correctable or
not, and b) we haven't tried to fixup anything.  Fix this.

Cc: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/scrub.c