diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-06-08 19:26:48 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:40 +0200 |
commit | 72545b5e76b05407e13f369590479ef1a5fd0f52 (patch) | |
tree | 3f28367f1bd367da4e2fe00b759730c413f741c2 /fs/bcachefs/btree_iter.h | |
parent | bcachefs: Improve warning for copygc failing to move data (diff) | |
download | linux-72545b5e76b05407e13f369590479ef1a5fd0f52.tar.xz linux-72545b5e76b05407e13f369590479ef1a5fd0f52.zip |
bcachefs: bch2_trans_downgrade()
bch2_btree_iter_downgrade() was looping over all iterators in a
transaction; bch2_trans_downgrade() should be doing that.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.h')
-rw-r--r-- | fs/bcachefs/btree_iter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index f9dcbdc9ab52..bc408f1272e7 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -136,6 +136,8 @@ static inline void bch2_btree_iter_downgrade(struct btree_iter *iter) __bch2_btree_iter_downgrade(iter, 0); } +void bch2_trans_downgrade(struct btree_trans *); + void bch2_btree_iter_node_replace(struct btree_iter *, struct btree *); void bch2_btree_iter_node_drop(struct btree_iter *, struct btree *); |