Commit 282e7c37 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: kill mem_trigger_run_overwrite_then_insert()

now that type signatures are unified, redundant
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent c95e9ec4
...@@ -1011,7 +1011,7 @@ int bch2_mark_extent(struct btree_trans *trans, ...@@ -1011,7 +1011,7 @@ int bch2_mark_extent(struct btree_trans *trans,
struct bkey_s_c old, struct bkey_s new, struct bkey_s_c old, struct bkey_s new,
unsigned flags) unsigned flags)
{ {
return mem_trigger_run_overwrite_then_insert(__mark_extent, trans, btree_id, level, old, new, flags); return trigger_run_overwrite_then_insert(__mark_extent, trans, btree_id, level, old, new, flags);
} }
int bch2_mark_stripe(struct btree_trans *trans, int bch2_mark_stripe(struct btree_trans *trans,
...@@ -1157,7 +1157,7 @@ int bch2_mark_reservation(struct btree_trans *trans, ...@@ -1157,7 +1157,7 @@ int bch2_mark_reservation(struct btree_trans *trans,
struct bkey_s_c old, struct bkey_s new, struct bkey_s_c old, struct bkey_s new,
unsigned flags) unsigned flags)
{ {
return mem_trigger_run_overwrite_then_insert(__mark_reservation, trans, btree_id, level, old, new, flags); return trigger_run_overwrite_then_insert(__mark_reservation, trans, btree_id, level, old, new, flags);
} }
void bch2_trans_fs_usage_revert(struct btree_trans *trans, void bch2_trans_fs_usage_revert(struct btree_trans *trans,
......
...@@ -339,7 +339,7 @@ int bch2_mark_reservation(struct btree_trans *, enum btree_id, unsigned, ...@@ -339,7 +339,7 @@ int bch2_mark_reservation(struct btree_trans *, enum btree_id, unsigned,
int bch2_trans_mark_extent(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned); int bch2_trans_mark_extent(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned);
int bch2_trans_mark_stripe(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned); int bch2_trans_mark_stripe(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned);
int bch2_trans_mark_reservation(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned); int bch2_trans_mark_reservation(struct btree_trans *, enum btree_id, unsigned, struct bkey_s_c, struct bkey_s, unsigned);
#define mem_trigger_run_overwrite_then_insert(_fn, _trans, _btree_id, _level, _old, _new, _flags)\ #define trigger_run_overwrite_then_insert(_fn, _trans, _btree_id, _level, _old, _new, _flags)\
({ \ ({ \
int ret = 0; \ int ret = 0; \
\ \
...@@ -350,9 +350,6 @@ int bch2_trans_mark_reservation(struct btree_trans *, enum btree_id, unsigned, s ...@@ -350,9 +350,6 @@ int bch2_trans_mark_reservation(struct btree_trans *, enum btree_id, unsigned, s
ret; \ ret; \
}) })
#define trigger_run_overwrite_then_insert(_fn, _trans, _btree_id, _level, _old, _new, _flags) \
mem_trigger_run_overwrite_then_insert(_fn, _trans, _btree_id, _level, _old, _new, _flags)
void bch2_trans_fs_usage_revert(struct btree_trans *, struct replicas_delta_list *); void bch2_trans_fs_usage_revert(struct btree_trans *, struct replicas_delta_list *);
int bch2_trans_fs_usage_apply(struct btree_trans *, struct replicas_delta_list *); int bch2_trans_fs_usage_apply(struct btree_trans *, struct replicas_delta_list *);
......
...@@ -271,7 +271,7 @@ int bch2_mark_reflink_p(struct btree_trans *trans, ...@@ -271,7 +271,7 @@ int bch2_mark_reflink_p(struct btree_trans *trans,
struct bkey_s_c old, struct bkey_s new, struct bkey_s_c old, struct bkey_s new,
unsigned flags) unsigned flags)
{ {
return mem_trigger_run_overwrite_then_insert(__mark_reflink_p, trans, btree_id, level, old, new, flags); return trigger_run_overwrite_then_insert(__mark_reflink_p, trans, btree_id, level, old, new, flags);
} }
/* indirect extents */ /* indirect extents */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment