diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-09 05:04:38 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:43 -0400 |
commit | 1ff7849f3b2478a4b4ec8abf77ce5e35acac70be (patch) | |
tree | 5d32bf4cd9931c104f5118b6cc285023cd699713 /fs/bcachefs/btree_update.h | |
parent | a8eefbd324cd40fab57ab8eef88347d4f745db93 (diff) | |
download | linux-1ff7849f3b2478a4b4ec8abf77ce5e35acac70be.tar.gz linux-1ff7849f3b2478a4b4ec8abf77ce5e35acac70be.tar.bz2 linux-1ff7849f3b2478a4b4ec8abf77ce5e35acac70be.zip |
bcachefs: bch2_btree_insert_node() no longer uses lock_write_nofail
Now that we have an error path plumbed through, there's no need to be
using bch2_btree_node_lock_write_nofail().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update.h')
-rw-r--r-- | fs/bcachefs/btree_update.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_update.h b/fs/bcachefs/btree_update.h index 89941fb8caa0..1c2e7b2b4ed5 100644 --- a/fs/bcachefs/btree_update.h +++ b/fs/bcachefs/btree_update.h @@ -8,8 +8,8 @@ struct bch_fs; struct btree; -void bch2_btree_node_lock_for_insert(struct btree_trans *, struct btree_path *, - struct btree *); +void bch2_btree_node_prep_for_write(struct btree_trans *, + struct btree_path *, struct btree *); bool bch2_btree_bset_insert_key(struct btree_trans *, struct btree_path *, struct btree *, struct btree_node_iter *, struct bkey_i *); |