mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 10:41:49 +02:00
bcachefs: Use drop_locks_do() in bch2_inode_hash_find()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
c02e5b5728
commit
83ecd1b122
|
|
@ -352,9 +352,8 @@ static struct bch_inode_info *bch2_inode_hash_find(struct bch_fs *c, struct btre
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user