The patch adds the xor function after the P stripe has failed, without bad data or the Q stripe.
Signed-off-by: Sanidhya Solanki <jpage.l...@gmail.com> --- fs/btrfs/raid56.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 1a33d3e..d33734a 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c @@ -1864,8 +1864,8 @@ static void __raid_recover_end_io(struct btrfs_raid_bio *rbio) /* * Just the P stripe has failed, without * a bad data or Q stripe. - * TODO, we should redo the xor here. */ + run_xor(pointers, rbio->nr_data - 1, PAGE_CACHE_SIZE); err = -EIO; goto cleanup; } -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html