]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Set real mirror number for read operation on RAID0/5/6
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 12 Sep 2014 10:44:02 +0000 (18:44 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:39:00 +0000 (13:39 -0700)
commita0a28530c7e66201c958f537dd79bafd6b401711
tree0d823d67ce5cb6eb1a12ab9aff5a49a7abde079d
parentc286e003464be0cc0ad6cde7aef3c8dc5eb90ff7
Btrfs: Set real mirror number for read operation on RAID0/5/6

We need real mirror number for RAID0/5/6 when reading data, or if read error
happens, we would pass 0 as the number of the mirror on which the io error
happens. It is wrong and would cause the filesystem read the data from the
corrupted mirror again.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c