]> git.hungrycats.org Git - linux/commit
Btrfs, scrub: repair the common data on RAID5/6 if it is corrupted
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 23 Oct 2014 06:42:50 +0000 (14:42 +0800)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:18:12 +0000 (08:18 -0500)
commit2556335a038b7854e82b80261c2e7949606dd1b5
tree2f149d47e488a2ccda92cb459d41142f6cf671f5
parent600a63e778f57883bac50b3c0556013b4593c834
Btrfs, scrub: repair the common data on RAID5/6 if it is corrupted

This patch implement the RAID5/6 common data repair function, the
implementation is similar to the scrub on the other RAID such as
RAID1, the differentia is that we don't read the data from the
mirror, we use the data repair function of RAID5/6.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
(cherry picked from commit af8e2d1df9848b39dd86b1e696bf8781d2020a88)
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h