diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-09-22 18:49:16 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:28 -0400 |
commit | a7199432c3cbcd42141cfd5c047bf8828c2390d8 (patch) | |
tree | 50290b89d2946e5cfcac71c886531fa40b7b4ffe /fs/bcachefs/str_hash.h | |
parent | 877dfb348d90abc3d7464ee37240f21d9bdff630 (diff) | |
download | linux-stable-a7199432c3cbcd42141cfd5c047bf8828c2390d8.tar.gz linux-stable-a7199432c3cbcd42141cfd5c047bf8828c2390d8.tar.bz2 linux-stable-a7199432c3cbcd42141cfd5c047bf8828c2390d8.zip |
bcachefs: Kill deferred btree updates
Will be replaced by cached btree iterators
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/str_hash.h')
-rw-r--r-- | fs/bcachefs/str_hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/str_hash.h b/fs/bcachefs/str_hash.h index 31b278e71051..886f1bc8aa14 100644 --- a/fs/bcachefs/str_hash.h +++ b/fs/bcachefs/str_hash.h @@ -267,7 +267,7 @@ not_found: } insert->k.p = iter->pos; - bch2_trans_update(trans, BTREE_INSERT_ENTRY(iter, insert)); + bch2_trans_update(trans, iter, insert); bch2_trans_iter_free_on_commit(trans, iter); } @@ -295,7 +295,7 @@ int bch2_hash_delete_at(struct btree_trans *trans, delete->k.p = iter->pos; delete->k.type = ret ? KEY_TYPE_whiteout : KEY_TYPE_deleted; - bch2_trans_update(trans, BTREE_INSERT_ENTRY(iter, delete)); + bch2_trans_update(trans, iter, delete); return 0; } |