Skip to content

Commit c994710

Browse files
author
Kent Overstreet
committed
bcachefs: Fix warning in __bch2_fsck_err() for trans not passed in
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 06a8693 commit c994710

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/btree_io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,8 @@ static int __bch2_btree_root_read(struct btree_trans *trans, enum btree_id id,
17671767

17681768
set_btree_node_read_in_flight(b);
17691769

1770+
/* we can't pass the trans to read_done() for fsck errors, so it must be unlocked */
1771+
bch2_trans_unlock(trans);
17701772
bch2_btree_node_read(trans, b, true);
17711773

17721774
if (btree_node_read_error(b)) {

0 commit comments

Comments
 (0)