Skip to content

Commit 600b8be

Browse files
author
Kent Overstreet
committed
bcachefs: Change bch2_fs_journal_stop() BUG_ON() to warning
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 84db600 commit 600b8be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fs/bcachefs/journal.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,9 +1184,11 @@ void bch2_fs_journal_stop(struct journal *j)
11841184
journal_quiesce(j);
11851185
cancel_delayed_work_sync(&j->write_work);
11861186

1187-
BUG_ON(!bch2_journal_error(j) &&
1188-
test_bit(JOURNAL_replay_done, &j->flags) &&
1189-
j->last_empty_seq != journal_cur_seq(j));
1187+
WARN(!bch2_journal_error(j) &&
1188+
test_bit(JOURNAL_replay_done, &j->flags) &&
1189+
j->last_empty_seq != journal_cur_seq(j),
1190+
"journal shutdown error: cur seq %llu but last empty seq %llu",
1191+
journal_cur_seq(j), j->last_empty_seq);
11901192

11911193
if (!bch2_journal_error(j))
11921194
clear_bit(JOURNAL_running, &j->flags);

0 commit comments

Comments
 (0)