diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-04 19:39:59 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:50 -0400 |
commit | 94c69fafa7081d84be89ba1067558be39b4ea44b (patch) | |
tree | 321fa450b27dbef7c8b15e60bfbe4d3cdf11755a /fs/bcachefs/btree_locking.c | |
parent | f746c62ca5d02f43d92c9666ffd3dab01f1972ff (diff) | |
download | lwn-94c69fafa7081d84be89ba1067558be39b4ea44b.tar.gz lwn-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_locking.c')
-rw-r--r-- | fs/bcachefs/btree_locking.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_locking.c b/fs/bcachefs/btree_locking.c index e7659b4cf9e4..56489e7b0ac2 100644 --- a/fs/bcachefs/btree_locking.c +++ b/fs/bcachefs/btree_locking.c @@ -366,7 +366,8 @@ int __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree_path *p * locked: */ six_lock_readers_add(&b->lock, -readers); - ret = __btree_node_lock_nopath(trans, b, SIX_LOCK_write, lock_may_not_fail); + ret = __btree_node_lock_nopath(trans, b, SIX_LOCK_write, + lock_may_not_fail, _RET_IP_); six_lock_readers_add(&b->lock, readers); if (ret) |