From 9f6bd30703a32c25988c6aca87c1be1baddc57bd Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 24 Aug 2021 21:30:06 -0400 Subject: bcachefs: Reduce iter->trans usage Disfavoured, and should go away. Signed-off-by: Kent Overstreet --- fs/bcachefs/btree_update.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fs/bcachefs/btree_update.h') diff --git a/fs/bcachefs/btree_update.h b/fs/bcachefs/btree_update.h index 217b52e1a168..5707baf10262 100644 --- a/fs/bcachefs/btree_update.h +++ b/fs/bcachefs/btree_update.h @@ -10,8 +10,9 @@ struct btree; void bch2_btree_node_lock_for_insert(struct btree_trans *, struct btree_iter *, struct btree *); -bool bch2_btree_bset_insert_key(struct btree_iter *, struct btree *, - struct btree_node_iter *, struct bkey_i *); +bool bch2_btree_bset_insert_key(struct btree_trans *, struct btree_iter *, + struct btree *, struct btree_node_iter *, + struct bkey_i *); void bch2_btree_add_journal_pin(struct bch_fs *, struct btree *, u64); enum btree_insert_flags { -- cgit v1.2.3-70-g09d2