diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-15 20:40:28 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-16 16:35:38 -0500 |
commit | 49c8f61ebff8dc5fff68752d22800f7f57a5c24e (patch) | |
tree | ae0e1ed4357d9b68c7b6441a108e8334b6fba964 /fs/bcachefs/bcachefs_format.h | |
parent | 75d4c8fd98acca81d7729a33dd7ca7db88ba28d0 (diff) |
bcachefs: KEY_TYPE_extent_block_checksumextent-inline-data
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
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; |