summaryrefslogtreecommitdiff
path: root/fs/bcachefs/ec_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/ec_format.h')
-rw-r--r--fs/bcachefs/ec_format.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/bcachefs/ec_format.h b/fs/bcachefs/ec_format.h
index 44ce88ba08d7..64ef52e00078 100644
--- a/fs/bcachefs/ec_format.h
+++ b/fs/bcachefs/ec_format.h
@@ -11,7 +11,14 @@ struct bch_stripe {
__u8 csum_granularity_bits;
__u8 csum_type;
- __u8 pad;
+
+ /*
+ * XXX: targets should be 16 bits - fix this if we ever do a stripe_v2
+ *
+ * we can manage with this because this only needs to point to a
+ * disk label, not a target:
+ */
+ __u8 disk_label;
struct bch_extent_ptr ptrs[];
} __packed __aligned(8);