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)
committerMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Dec 2014 02:18:45 +0000 (10:18 +0800)
commitaf8e2d1df9848b39dd86b1e696bf8781d2020a88
tree0abf72105056f1c5fe7038c37f4c5d63ea29c875
parentb89e1b012c7f81123344058d5f245b844464d30c
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>
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h