diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-24 23:12:51 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:09 +0200 |
commit | 6e075b54a3749d3f94e4b87ed8294f8d6ab09bac (patch) | |
tree | cb8ac9c2f61d05f0c0017ffdd8b82dddb6ad866b /fs/bcachefs/btree_cache.h | |
parent | bcachefs: Use bch2_trans_do() in bch2_btree_key_cache_journal_flush() (diff) | |
download | linux-6e075b54a3749d3f94e4b87ed8294f8d6ab09bac.tar.xz linux-6e075b54a3749d3f94e4b87ed8294f8d6ab09bac.zip |
bcachefs: bch2_btree_iter_relock_intent()
This adds a new helper for btree_cache.c that does what we want where
the iterator is still being traverse - and also eliminates some
unnecessary transaction restarts.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_cache.h')
-rw-r--r-- | fs/bcachefs/btree_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_cache.h b/fs/bcachefs/btree_cache.h index 40dd263a7caa..6e9f08597d94 100644 --- a/fs/bcachefs/btree_cache.h +++ b/fs/bcachefs/btree_cache.h @@ -20,7 +20,7 @@ int bch2_btree_cache_cannibalize_lock(struct bch_fs *, struct closure *); struct btree *__bch2_btree_node_mem_alloc(struct bch_fs *); struct btree *bch2_btree_node_mem_alloc(struct bch_fs *); -struct btree *bch2_btree_node_get(struct bch_fs *, struct btree_iter *, +struct btree *bch2_btree_node_get(struct btree_trans *, struct btree_iter *, const struct bkey_i *, unsigned, enum six_lock_type, unsigned long); |