summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sb-members_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-09-01 18:09:18 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-03 20:43:14 -0400
commit53f6619554fb1edf8d7599b560d44dbea085c730 (patch)
treeb3d3fed510eb714dc187b2acf040f071d7a94435 /fs/bcachefs/sb-members_format.h
parent7f12a963b65872fda1219f065c1cc1b1b9a806e8 (diff)
bcachefs: BCH_SB_MEMBER_INVALID
Create a sentinal value for "invalid device". This is needed for removing devices that have stripes on them (force removing, without evacuating); we need a sentinal value for the stripe pointers to the device being removed. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-members_format.h')
-rw-r--r--fs/bcachefs/sb-members_format.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/sb-members_format.h b/fs/bcachefs/sb-members_format.h
index e2630548c0f6..d727d2dfda08 100644
--- a/fs/bcachefs/sb-members_format.h
+++ b/fs/bcachefs/sb-members_format.h
@@ -8,6 +8,11 @@
*/
#define BCH_SB_MEMBERS_MAX 64
+/*
+ * Sentinal value - indicates a device that does not exist
+ */
+#define BCH_SB_MEMBER_INVALID 255
+
#define BCH_MIN_NR_NBUCKETS (1 << 6)
#define BCH_IOPS_MEASUREMENTS() \