summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/str_hash.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-07-17 15:28:11 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:07 -0400
commitfc88796d1ce84181bbf4fb3618305a417454b806 (patch)
treef28fb796df9c832c9c1db026de54e6778151dcb4 /fs/bcachefs/str_hash.h
parent2ea9004864b918be34e742e38fb08d868600d020 (diff)
downloadlinux-stable-fc88796d1ce84181bbf4fb3618305a417454b806.tar.gz
linux-stable-fc88796d1ce84181bbf4fb3618305a417454b806.tar.bz2
linux-stable-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.h6
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;
}