diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-10-24 21:00:59 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-10-24 21:01:26 -0400 |
commit | 96f4a81a01dc43849cafc028795d5f362eba5cb8 (patch) | |
tree | a537c6c3932bfb2a2eeb0058004dc690212404fd /libbcachefs/reflink.h | |
parent | 37270fc79cbe4ab62001893eebd16b6fde4b621b (diff) |
Update bcachefs sources to 13bb4cdf89 bcachefs: Indirect inline data extents
Diffstat (limited to 'libbcachefs/reflink.h')
-rw-r--r-- | libbcachefs/reflink.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libbcachefs/reflink.h b/libbcachefs/reflink.h index 5445c1cf..9d5e7dc5 100644 --- a/libbcachefs/reflink.h +++ b/libbcachefs/reflink.h @@ -18,13 +18,22 @@ const char *bch2_reflink_v_invalid(const struct bch_fs *, struct bkey_s_c); void bch2_reflink_v_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); - #define bch2_bkey_ops_reflink_v (struct bkey_ops) { \ .key_invalid = bch2_reflink_v_invalid, \ .val_to_text = bch2_reflink_v_to_text, \ .swab = bch2_ptr_swab, \ } +const char *bch2_indirect_inline_data_invalid(const struct bch_fs *, + struct bkey_s_c); +void bch2_indirect_inline_data_to_text(struct printbuf *, + struct bch_fs *, struct bkey_s_c); + +#define bch2_bkey_ops_indirect_inline_data (struct bkey_ops) { \ + .key_invalid = bch2_indirect_inline_data_invalid, \ + .val_to_text = bch2_indirect_inline_data_to_text, \ +} + s64 bch2_remap_range(struct bch_fs *, struct bpos, struct bpos, u64, u64 *, u64, s64 *); |