summaryrefslogtreecommitdiff
path: root/libbcachefs/ec_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/ec_types.h')
-rw-r--r--libbcachefs/ec_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbcachefs/ec_types.h b/libbcachefs/ec_types.h
index 3fc31222..d9623ba6 100644
--- a/libbcachefs/ec_types.h
+++ b/libbcachefs/ec_types.h
@@ -21,6 +21,16 @@ struct stripe {
unsigned alive:1; /* does a corresponding key exist in stripes btree? */
unsigned on_heap:1;
u8 blocks_nonempty;
+};
+
+struct gc_stripe {
+ u16 sectors;
+ u8 algorithm;
+
+ u8 nr_blocks;
+ u8 nr_redundant;
+
+ unsigned alive:1; /* does a corresponding key exist in stripes btree? */
u16 block_sectors[BCH_BKEY_PTRS_MAX];
struct bch_extent_ptr ptrs[BCH_BKEY_PTRS_MAX];