1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_EC_TYPES_H
3 #define _BCACHEFS_EC_TYPES_H
5 #include <linux/llist.h>
7 struct bch_replicas_padded {
8 struct bch_replicas_entry e;
9 u8 pad[BCH_BKEY_PTRS_MAX];
21 unsigned alive:1; /* does a corresponding key exist in stripes btree? */
32 unsigned alive:1; /* does a corresponding key exist in stripes btree? */
33 u16 block_sectors[BCH_BKEY_PTRS_MAX];
34 struct bch_extent_ptr ptrs[BCH_BKEY_PTRS_MAX];
36 struct bch_replicas_padded r;
39 struct ec_stripe_heap_entry {
41 unsigned blocks_nonempty;
44 typedef HEAP(struct ec_stripe_heap_entry) ec_stripes_heap;
46 #endif /* _BCACHEFS_EC_TYPES_H */