diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-12 02:04:29 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 19:47:42 +0300 |
commit | 79904fa2bb540e2ecfaa181d7fef8cb21653b0c0 (patch) | |
tree | c227c396e7e9326dfd660b526535dff257b8f303 /fs/bcachefs/btree_iter.c | |
parent | 6d5c606c1cdc4e7c3d2ca83660e9f68827fc04ed (diff) | |
download | linux-79904fa2bb540e2ecfaa181d7fef8cb21653b0c0.tar.xz |
bcachefs: bch2_trans_srcu_lock() should be static
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.c')
-rw-r--r-- | fs/bcachefs/btree_iter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_iter.c b/fs/bcachefs/btree_iter.c index 0ffa3cdf8134..72da7bedbe50 100644 --- a/fs/bcachefs/btree_iter.c +++ b/fs/bcachefs/btree_iter.c @@ -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); |