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];
27 u16 block_sectors[EC_STRIPE_MAX];
29 struct bch_replicas_padded r;
32 struct ec_stripe_heap_entry {
34 unsigned blocks_nonempty;
37 typedef HEAP(struct ec_stripe_heap_entry) ec_stripes_heap;
39 #endif /* _BCACHEFS_EC_TYPES_H */