diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-17 21:28:11 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:07 +0200 |
commit | fc88796d1ce84181bbf4fb3618305a417454b806 (patch) | |
tree | f28fb796df9c832c9c1db026de54e6778151dcb4 /fs/bcachefs/str_hash.h | |
parent | bcachefs: Fix mtime/ctime updates (diff) | |
download | linux-fc88796d1ce84181bbf4fb3618305a417454b806.tar.xz linux-fc88796d1ce84181bbf4fb3618305a417454b806.zip |
bcachefs: bch2_trans_update() now takes struct btree_insert_entry
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/str_hash.h b/fs/bcachefs/str_hash.h index 0947fdcdc4cd..fbd6c3372677 100644 --- a/fs/bcachefs/str_hash.h +++ b/fs/bcachefs/str_hash.h @@ -255,14 +255,14 @@ not_found: return -ENOENT; insert->k.p = slot->pos; - bch2_trans_update(trans, slot, insert, 0); + bch2_trans_update(trans, BTREE_INSERT_ENTRY(slot, insert)); return 0; found: if (flags & BCH_HASH_SET_MUST_CREATE) return -EEXIST; insert->k.p = iter->pos; - bch2_trans_update(trans, iter, insert, 0); + bch2_trans_update(trans, BTREE_INSERT_ENTRY(iter, insert)); return 0; } @@ -297,7 +297,7 @@ static inline int bch2_hash_delete_at(struct btree_trans *trans, delete->k.p = iter->pos; delete->k.type = ret ? desc.whiteout_type : KEY_TYPE_DELETED; - bch2_trans_update(trans, iter, delete, 0); + bch2_trans_update(trans, BTREE_INSERT_ENTRY(iter, delete)); return 0; } |