diff options
author | Tanmay Bhushan <007047221b@gmail.com> | 2023-01-15 21:32:15 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-01-25 20:11:07 +0100 |
commit | f7c11affde9e29316d24b6736d16faeaac8278f2 (patch) | |
tree | f6458a9179f676ab6767da7858d4aaf72d31203f /fs/btrfs | |
parent | btrfs: fix race between quota rescan and disable leading to NULL pointer deref (diff) | |
download | linux-f7c11affde9e29316d24b6736d16faeaac8278f2.tar.xz linux-f7c11affde9e29316d24b6736d16faeaac8278f2.zip |
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: 7a3150723061 ("btrfs: raid56: do data csum verification during RMW cycle")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Tanmay Bhushan <007047221b@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/raid56.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 6a2cf754912d..f35898a78b16 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c @@ -1886,7 +1886,7 @@ pstripe: sector->uptodate = 1; } if (failb >= 0) { - ret = verify_one_sector(rbio, faila, sector_nr); + ret = verify_one_sector(rbio, failb, sector_nr); if (ret < 0) goto cleanup; |