]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: bch2_trans_srcu_lock() should be static
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Dec 2023 23:04:29 +0000 (18:04 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:42 +0000 (11:47 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.h

index 0ffa3cdf8134e38f18bc947023943d487024db88..72da7bedbe50462fe538c75efbfbb5be747658d4 100644 (file)
@@ -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 void bch2_trans_srcu_lock(struct btree_trans *);
 
 static inline int __btree_path_cmp(const struct btree_path *l,
                                   enum btree_id        r_btree_id,
@@ -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) {
                trans->srcu_idx = srcu_read_lock(&trans->c->btree_trans_barrier);
index 6bc75bee55c8ca050ad681cce419ce16c9aebec2..c8745d5bdc27dd7eaae4ba5695a9cb6f266a63ab 100644 (file)
@@ -565,7 +565,6 @@ static inline int __bch2_bkey_get_val_typed(struct btree_trans *trans,
                                  KEY_TYPE_##_type, sizeof(*_val), _val)
 
 void bch2_trans_srcu_unlock(struct btree_trans *);
-void bch2_trans_srcu_lock(struct btree_trans *);
 
 u32 bch2_trans_begin(struct btree_trans *);