summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_key_cache.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-04 19:39:59 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:50 -0400
commit94c69fafa7081d84be89ba1067558be39b4ea44b (patch)
tree321fa450b27dbef7c8b15e60bfbe4d3cdf11755a /fs/bcachefs/btree_key_cache.c
parentf746c62ca5d02f43d92c9666ffd3dab01f1972ff (diff)
downloadlinux-94c69fafa7081d84be89ba1067558be39b4ea44b.tar.gz
linux-94c69fafa7081d84be89ba1067558be39b4ea44b.tar.bz2
linux-94c69fafa7081d84be89ba1067558be39b4ea44b.zip
bcachefs: Use six_lock_ip()
This uses the new _ip() interface to six locks and hooks it up to btree_path->ip_allocated, when available. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_key_cache.c')
-rw-r--r--fs/bcachefs/btree_key_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_key_cache.c b/fs/bcachefs/btree_key_cache.c
index d4cfb48d2013..743ebeba12b1 100644
--- a/fs/bcachefs/btree_key_cache.c
+++ b/fs/bcachefs/btree_key_cache.c
@@ -244,7 +244,7 @@ bkey_cached_alloc(struct btree_trans *trans, struct btree_path *path,
if (ck) {
int ret;
- ret = btree_node_lock_nopath(trans, &ck->c, SIX_LOCK_intent);
+ ret = btree_node_lock_nopath(trans, &ck->c, SIX_LOCK_intent, _THIS_IP_);
if (unlikely(ret)) {
bkey_cached_move_to_freelist(bc, ck);
return ERR_PTR(ret);