linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] BTRFS: Runs the xor function if a Block has failed
@ 2015-12-30  6:28 Sanidhya Solanki
  2015-12-30 17:18 ` David Sterba
  0 siblings, 1 reply; 5+ messages in thread
From: Sanidhya Solanki @ 2015-12-30  6:28 UTC (permalink / raw)
  To: clm, jbacik, dsterba, jpage.lkml; +Cc: linux-kernel, linux-btrfs

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@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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-05 14:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-30  6:28 [PATCH] BTRFS: Runs the xor function if a Block has failed Sanidhya Solanki
2015-12-30 17:18 ` David Sterba
2015-12-31  2:15   ` Sanidhya Solanki
2016-01-05  9:22     ` David Sterba
2016-01-05 10:03       ` Sanidhya Solanki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).