mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
bcachefs: fix failure to relock in btree_node_fill()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
3c5d0b72a8
commit
5dbfc4ef72
@ -873,6 +873,10 @@ static noinline struct btree *bch2_btree_node_fill(struct btree_trans *trans,
|
||||
|
||||
bch2_btree_node_read(trans, b, sync);
|
||||
|
||||
int ret = bch2_trans_relock(trans);
|
||||
if (ret)
|
||||
return ERR_PTR(ret);
|
||||
|
||||
if (!sync)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user