Linux 6.13-rc4
[linux.git] / fs / bcachefs / ec_format.h
blob64ef52e000784ddc780301ab478832c73489b0af
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_EC_FORMAT_H
3 #define _BCACHEFS_EC_FORMAT_H
5 struct bch_stripe {
6 struct bch_val v;
7 __le16 sectors;
8 __u8 algorithm;
9 __u8 nr_blocks;
10 __u8 nr_redundant;
12 __u8 csum_granularity_bits;
13 __u8 csum_type;
16 * XXX: targets should be 16 bits - fix this if we ever do a stripe_v2
18 * we can manage with this because this only needs to point to a
19 * disk label, not a target:
21 __u8 disk_label;
23 struct bch_extent_ptr ptrs[];
24 } __packed __aligned(8);
26 #endif /* _BCACHEFS_EC_FORMAT_H */