Commit 79904fa2 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: bch2_trans_srcu_lock() should be static

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6d5c606c
...@@ -35,6 +35,7 @@ static inline unsigned long btree_iter_ip_allocated(struct btree_iter *iter) ...@@ -35,6 +35,7 @@ static inline unsigned long btree_iter_ip_allocated(struct btree_iter *iter)
} }
static struct btree_path *btree_path_alloc(struct btree_trans *, struct btree_path *); static struct btree_path *btree_path_alloc(struct btree_trans *, struct btree_path *);
static void bch2_trans_srcu_lock(struct btree_trans *);
static inline int __btree_path_cmp(const struct btree_path *l, static inline int __btree_path_cmp(const struct btree_path *l,
enum btree_id r_btree_id, enum btree_id r_btree_id,
...@@ -2764,7 +2765,7 @@ void bch2_trans_srcu_unlock(struct btree_trans *trans) ...@@ -2764,7 +2765,7 @@ void bch2_trans_srcu_unlock(struct btree_trans *trans)
} }
} }
void bch2_trans_srcu_lock(struct btree_trans *trans) static void bch2_trans_srcu_lock(struct btree_trans *trans)
{ {
if (!trans->srcu_held) { if (!trans->srcu_held) {
trans->srcu_idx = srcu_read_lock(&trans->c->btree_trans_barrier); trans->srcu_idx = srcu_read_lock(&trans->c->btree_trans_barrier);
......
...@@ -565,7 +565,6 @@ static inline int __bch2_bkey_get_val_typed(struct btree_trans *trans, ...@@ -565,7 +565,6 @@ static inline int __bch2_bkey_get_val_typed(struct btree_trans *trans,
KEY_TYPE_##_type, sizeof(*_val), _val) KEY_TYPE_##_type, sizeof(*_val), _val)
void bch2_trans_srcu_unlock(struct btree_trans *); void bch2_trans_srcu_unlock(struct btree_trans *);
void bch2_trans_srcu_lock(struct btree_trans *);
u32 bch2_trans_begin(struct btree_trans *); u32 bch2_trans_begin(struct btree_trans *);
......
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