Skip to content

Commit f7c11af

Browse files
tanmaybhushankdave
authored andcommitted
btrfs: raid56: fix stripes if vertical errors are found
We take two stripe numbers if vertical errors are found. In case it is just a pstripe it does not matter but in case of raid 6 it matters as both stripes need to be fixed. Fixes: 7a31507 ("btrfs: raid56: do data csum verification during RMW cycle") Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Tanmay Bhushan <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent b7adbf9 commit f7c11af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/raid56.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ static int recover_vertical(struct btrfs_raid_bio *rbio, int sector_nr,
18861886
sector->uptodate = 1;
18871887
}
18881888
if (failb >= 0) {
1889-
ret = verify_one_sector(rbio, faila, sector_nr);
1889+
ret = verify_one_sector(rbio, failb, sector_nr);
18901890
if (ret < 0)
18911891
goto cleanup;
18921892

0 commit comments

Comments
 (0)