Btrfs: fix a scrub regression in case of write errors
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 27 Nov 2012 17:39:51 +0000 (17:39 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:14 +0000 (20:46 -0500)
commitaf1be4f851db4f4975f0139211a6561776ef37c0
treea508ceac2567883c6cbfac5c8e06761db80d2b20
parentf9c83748deb94aba89b5c1085f887ddcdab223ef
Btrfs: fix a scrub regression in case of write errors

This regression was introduced by the device-replace patches.
Scrub immediately stops checking those disks that have write errors.
This is nothing that happens in the real world, but it is wrong
since scrub is the tool to detect and repair defects. Fix it.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/scrub.c