Skip to content

Commit dbf4d79

Browse files
author
Kent Overstreet
committed
bcachefs: Fix early init error path in journal code
We shouln't be running the journal shutdown sequence if we never fully initialized the journal. Reported-by: [email protected] Signed-off-by: Kent Overstreet <[email protected]>
1 parent 9e7cfb3 commit dbf4d79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/bcachefs/journal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,9 @@ void bch2_dev_journal_stop(struct journal *j, struct bch_dev *ca)
11671167

11681168
void bch2_fs_journal_stop(struct journal *j)
11691169
{
1170+
if (!test_bit(JOURNAL_running, &j->flags))
1171+
return;
1172+
11701173
bch2_journal_reclaim_stop(j);
11711174
bch2_journal_flush_all_pins(j);
11721175

0 commit comments

Comments
 (0)