]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 01:33:58 +0000 (20:33 -0500)
commit71a6018f6c5e67e39c91bef9635b08953877614f
tree1041c3d21be8503b6debf1644b859a103d2c3e41
parent42f694b954ee6023aac90aaa864ef8c97d04c25b
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>
(cherry picked from commit 5da6fcbc4eb50c0f55d520750332f5a6ab13508c)
fs/btrfs/scrub.c