diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-28 05:20:18 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:01 +0200 |
commit | 51e84d3bbff55f5ac79fef0d1bbf515d6d397289 (patch) | |
tree | 9417ff495c058e6dc7c5883416694d8bb3a2854e /fs/bcachefs/btree_update.h | |
parent | bcachefs: bch2_bkey_make_mut() now calls bch2_trans_update() (diff) | |
download | linux-51e84d3bbff55f5ac79fef0d1bbf515d6d397289.tar.xz linux-51e84d3bbff55f5ac79fef0d1bbf515d6d397289.zip |
bcachefs: bch2_bkey_get_empty_slot()
Add a new helper for allocating a new slot in a btree.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update.h b/fs/bcachefs/btree_update.h index 34ca2c43a8ca..1ac3a81e0af6 100644 --- a/fs/bcachefs/btree_update.h +++ b/fs/bcachefs/btree_update.h @@ -86,6 +86,9 @@ int bch2_btree_node_update_key_get_iter(struct btree_trans *, int bch2_trans_update_extent(struct btree_trans *, struct btree_iter *, struct bkey_i *, enum btree_update_flags); +int bch2_bkey_get_empty_slot(struct btree_trans *, struct btree_iter *, + enum btree_id, struct bpos); + int __must_check bch2_trans_update(struct btree_trans *, struct btree_iter *, struct bkey_i *, enum btree_update_flags); int __must_check bch2_trans_update_buffered(struct btree_trans *, |