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 #define EC_STRIPE_MAX 16
9 struct bch_replicas_padded {
10 struct bch_replicas_entry e;
11 u8 pad[EC_STRIPE_MAX];
26 u16 block_sectors[EC_STRIPE_MAX];
28 struct bch_replicas_padded r;
31 struct ec_stripe_heap_entry {
33 unsigned blocks_nonempty;
36 typedef HEAP(struct ec_stripe_heap_entry) ec_stripes_heap;
38 #endif /* _BCACHEFS_EC_TYPES_H */