Commit 5dbfc4ef authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: fix failure to relock in btree_node_fill()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3c5d0b72
...@@ -873,6 +873,10 @@ static noinline struct btree *bch2_btree_node_fill(struct btree_trans *trans, ...@@ -873,6 +873,10 @@ static noinline struct btree *bch2_btree_node_fill(struct btree_trans *trans,
bch2_btree_node_read(trans, b, sync); bch2_btree_node_read(trans, b, sync);
int ret = bch2_trans_relock(trans);
if (ret)
return ERR_PTR(ret);
if (!sync) if (!sync)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment