summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/ec_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-21 02:47:14 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-21 13:27:11 -0500
commit0560eb9abf7dee3c3517cb38246522ecaf1efc12 (patch)
treef94b70acb282febec6066aa1e3487606ea33f5ed /fs/bcachefs/ec_format.h
parentc6c4ff6507c4e1d32f9c2019795d4b7aa6eb559f (diff)
downloadlinux-stable-0560eb9abf7dee3c3517cb38246522ecaf1efc12.tar.gz
linux-stable-0560eb9abf7dee3c3517cb38246522ecaf1efc12.tar.bz2
linux-stable-0560eb9abf7dee3c3517cb38246522ecaf1efc12.zip
bcachefs: ec_format.h
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec_format.h')
-rw-r--r--fs/bcachefs/ec_format.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/bcachefs/ec_format.h b/fs/bcachefs/ec_format.h
new file mode 100644
index 000000000000..44ce88ba08d7
--- /dev/null
+++ b/fs/bcachefs/ec_format.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _BCACHEFS_EC_FORMAT_H
+#define _BCACHEFS_EC_FORMAT_H
+
+struct bch_stripe {
+ struct bch_val v;
+ __le16 sectors;
+ __u8 algorithm;
+ __u8 nr_blocks;
+ __u8 nr_redundant;
+
+ __u8 csum_granularity_bits;
+ __u8 csum_type;
+ __u8 pad;
+
+ struct bch_extent_ptr ptrs[];
+} __packed __aligned(8);
+
+#endif /* _BCACHEFS_EC_FORMAT_H */