projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06a8693
)
bcachefs: Fix warning in __bch2_fsck_err() for trans not passed in
author
Kent Overstreet
<kent.overstreet@linux.dev>
Tue, 13 Aug 2024 03:29:46 +0000
(23:29 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 14 Aug 2024 03:00:50 +0000
(23:00 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_io.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/btree_io.c
b/fs/bcachefs/btree_io.c
index
2c42443
..
70ebcca
100644
(file)
--- a/
fs/bcachefs/btree_io.c
+++ b/
fs/bcachefs/btree_io.c
@@
-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);
+ /* 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);
if (btree_node_read_error(b)) {