bcachefs: Use drop_locks_do() in bch2_inode_hash_find()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2025-05-21 20:14:16 -04:00
parent c02e5b5728
commit 83ecd1b122
+2 -3
View File
@@ -352,9 +352,8 @@ repeat:
if (!trans) {
__wait_on_freeing_inode(c, inode, inum);
} else {
bch2_trans_unlock(trans);
__wait_on_freeing_inode(c, inode, inum);
int ret = bch2_trans_relock(trans);
int ret = drop_locks_do(trans,
(__wait_on_freeing_inode(c, inode, inum), 0));
if (ret)
return ERR_PTR(ret);
}