We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84db600 commit 600b8beCopy full SHA for 600b8be
fs/bcachefs/journal.c
@@ -1184,9 +1184,11 @@ void bch2_fs_journal_stop(struct journal *j)
1184
journal_quiesce(j);
1185
cancel_delayed_work_sync(&j->write_work);
1186
1187
- BUG_ON(!bch2_journal_error(j) &&
1188
- test_bit(JOURNAL_replay_done, &j->flags) &&
1189
- j->last_empty_seq != journal_cur_seq(j));
+ WARN(!bch2_journal_error(j) &&
+ test_bit(JOURNAL_replay_done, &j->flags) &&
+ 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);
1192
1193
if (!bch2_journal_error(j))
1194
clear_bit(JOURNAL_running, &j->flags);
0 commit comments