diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-12 23:29:46 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-13 23:00:50 -0400 |
commit | c99471024f24b3cbafc02bf5b112ecf34b0dbd40 (patch) | |
tree | c126b0ce6b5d96dc9edd6269fdbeb8c50ab30b2a /fs/bcachefs | |
parent | 06a8693b890c0cf7d94bf7c6f0e2adf3a3aaa346 (diff) | |
download | lwn-c99471024f24b3cbafc02bf5b112ecf34b0dbd40.tar.gz lwn-c99471024f24b3cbafc02bf5b112ecf34b0dbd40.zip |
bcachefs: Fix warning in __bch2_fsck_err() for trans not passed in
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/btree_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c index 2c424435ca4a..70ebcca08ba2 100644 --- 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)) { |