Commit c9947102 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix warning in __bch2_fsck_err() for trans not passed in

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 06a8693b
...@@ -1767,6 +1767,8 @@ static int __bch2_btree_root_read(struct btree_trans *trans, enum btree_id id, ...@@ -1767,6 +1767,8 @@ static int __bch2_btree_root_read(struct btree_trans *trans, enum btree_id id,
set_btree_node_read_in_flight(b); set_btree_node_read_in_flight(b);
/* we can't pass the trans to read_done() for fsck errors, so it must be unlocked */
bch2_trans_unlock(trans);
bch2_btree_node_read(trans, b, true); bch2_btree_node_read(trans, b, true);
if (btree_node_read_error(b)) { if (btree_node_read_error(b)) {
......
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