diff options
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r-- | fs/bcachefs/bcachefs_format.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index 5c3dd7e2ddd8..2593703e0518 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -339,7 +339,8 @@ static inline void bkey_init(struct bkey *k) x(stripe, 14) \ x(reflink_p, 15) \ x(reflink_v, 16) \ - x(inline_data, 17) + x(inline_data, 17) \ + x(extent_block_checksum, 18) enum bch_bkey_type { #define x(name, nr) KEY_TYPE_##name = nr, @@ -643,6 +644,16 @@ struct bch_extent { __u64 _data[0]; } __attribute__((packed, aligned(8))); +struct bch_extent_block_checksum { + struct bch_val v; + __u8 csum_type; + __u8 csum_granularity_bits; + __u8 csum_u64s; + __u8 pad[5]; + + __u64 _data[0]; +}; + struct bch_reservation { struct bch_val v; |