1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_REFLINK_H
3 #define _BCACHEFS_REFLINK_H
5 const char *bch2_reflink_p_invalid(const struct bch_fs *, struct bkey_s_c);
6 void bch2_reflink_p_to_text(struct printbuf *, struct bch_fs *,
8 enum merge_result bch2_reflink_p_merge(struct bch_fs *,
9 struct bkey_s, struct bkey_s);
11 #define bch2_bkey_ops_reflink_p (struct bkey_ops) { \
12 .key_invalid = bch2_reflink_p_invalid, \
13 .val_to_text = bch2_reflink_p_to_text, \
14 .key_merge = bch2_reflink_p_merge, \
17 const char *bch2_reflink_v_invalid(const struct bch_fs *, struct bkey_s_c);
18 void bch2_reflink_v_to_text(struct printbuf *, struct bch_fs *,
22 #define bch2_bkey_ops_reflink_v (struct bkey_ops) { \
23 .key_invalid = bch2_reflink_v_invalid, \
24 .val_to_text = bch2_reflink_v_to_text, \
27 s64 bch2_remap_range(struct bch_fs *, struct bpos, struct bpos,
28 u64, u64 *, u64, s64 *);
30 #endif /* _BCACHEFS_REFLINK_H */