]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: integrating raid-repair and scrub-fixup-nodatasum
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 4 Aug 2011 16:11:04 +0000 (18:11 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 29 Sep 2011 11:38:43 +0000 (13:38 +0200)
commitb5a52803bb7b755e05fa628761d8445217b95ea7
treef9f681b494b8120ab7298a04d45f6081a41869e2
parent926f5ba0c470dc2f4d2de97c6ab93c7d4899a66d
btrfs: integrating raid-repair and scrub-fixup-nodatasum

This ties nodatasum fixup in scrub together with raid repair patches. While
both series are working fine alone, scrub will report uncorrectable errors
if they occur in a nodatasum extent *and* the page is in the page cache.

Previously, we would have triggered readpage to find good data and do the
repair. However, readpage wouldn't read anything in the case where the page
is up to date in the cache. So, we simply take that good data we have and
call repair_io_failure directly (unless the page in the cache is dirty).

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/scrub.c