summaryrefslogtreecommitdiff
path: root/fs/bcachefs/reflink.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-28 08:15:58 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-06 07:24:20 +0300
commit7bc4d18af4131ce900d7d9d90e51135706818628 (patch)
tree6b0d59de2ed7a51a9106f856d5075f9961df5c04 /fs/bcachefs/reflink.h
parent08bc95901037bce2fa31a7bb4b559f55a31ae88d (diff)
downloadlinux-7bc4d18af4131ce900d7d9d90e51135706818628.tar.xz
bcachefs: unify reflink_p trigger
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/reflink.h')
-rw-r--r--fs/bcachefs/reflink.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/bcachefs/reflink.h b/fs/bcachefs/reflink.h
index 130b44625c85..fbb34f468f71 100644
--- a/fs/bcachefs/reflink.h
+++ b/fs/bcachefs/reflink.h
@@ -9,17 +9,15 @@ int bch2_reflink_p_invalid(struct bch_fs *, struct bkey_s_c,
void bch2_reflink_p_to_text(struct printbuf *, struct bch_fs *,
struct bkey_s_c);
bool bch2_reflink_p_merge(struct bch_fs *, struct bkey_s, struct bkey_s_c);
-int bch2_trans_mark_reflink_p(struct btree_trans *, enum btree_id, unsigned,
- struct bkey_s_c, struct bkey_s, unsigned);
-int bch2_mark_reflink_p(struct btree_trans *, enum btree_id, unsigned,
- struct bkey_s_c, struct bkey_s, unsigned);
+int bch2_trigger_reflink_p(struct btree_trans *, enum btree_id, unsigned,
+ struct bkey_s_c, struct bkey_s, unsigned);
#define bch2_bkey_ops_reflink_p ((struct bkey_ops) { \
.key_invalid = bch2_reflink_p_invalid, \
.val_to_text = bch2_reflink_p_to_text, \
.key_merge = bch2_reflink_p_merge, \
- .trans_trigger = bch2_trans_mark_reflink_p, \
- .atomic_trigger = bch2_mark_reflink_p, \
+ .trans_trigger = bch2_trigger_reflink_p, \
+ .atomic_trigger = bch2_trigger_reflink_p, \
.min_val_size = 16, \
})