summaryrefslogtreecommitdiff
path: root/fs/btrfs/raid56.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-11-07 10:32:31 +0300
committerDavid Sterba <dsterba@suse.com>2022-12-05 20:00:55 +0300
commitad3daf1c3f5bcbba49a302d8d0e46467556bf6f3 (patch)
tree0d7230ede2507e979d0aae62ac96d784c7f7dad9 /fs/btrfs/raid56.h
parent75b47033296595efb208cc563cbb8cf4fb7c3ebc (diff)
downloadlinux-ad3daf1c3f5bcbba49a302d8d0e46467556bf6f3.tar.xz
btrfs: raid56: remove the old error tracking system
Since all the recovery paths have been migrated to the new error bitmap based system, we can remove the old stripe number based system. This cleanup involves one behavior change: - Rebuild rbio can no longer be merged Previously a rebuild rbio (caused by retry after data csum mismatch) can be merged, if the error happens in the same stripe. But with the new error bitmap based solution, it's much harder to compare error bitmaps. So here we just don't merge rebuild rbio at all. This may introduce some performance impact at extreme corner cases, but we're willing to take it. Other than that, this patch will cleanup the following members: - rbio::faila - rbio::failb They will be replaced by per-vertical stripe check, which is more accurate. - rbio::error It will be replace by per-vertical stripe error bitmap check. - Allow get_rbio_vertical_errors() to accept NULL pointers for @faila and @failb Some call sites only want to check if we have errors beyond the tolerance. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.h')
-rw-r--r--fs/btrfs/raid56.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/raid56.h b/fs/btrfs/raid56.h
index e38da4fa76d6..a2e653e93fd8 100644
--- a/fs/btrfs/raid56.h
+++ b/fs/btrfs/raid56.h
@@ -74,12 +74,6 @@ struct btrfs_raid_bio {
/* How many sectors there are for each stripe */
u8 stripe_nsectors;
- /* First bad stripe, -1 means no corruption */
- s8 faila;
-
- /* Second bad stripe (for RAID6 use) */
- s8 failb;
-
/* Stripe number that we're scrubbing */
u8 scrubp;
@@ -93,8 +87,6 @@ struct btrfs_raid_bio {
atomic_t stripes_pending;
- atomic_t error;
-
wait_queue_head_t io_wait;
/* Bitmap to record which horizontal stripe has data */