[PATCH] BTRFS: Runs the xor function if a Block has failed
From: Sanidhya Solanki
Date: Wed Dec 30 2015 - 05:31:54 EST
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.lkml@xxxxxxxxx>
---
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-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/