mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
bcachefs: Change bch2_fs_journal_stop() BUG_ON() to warning
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
84db600016
commit
600b8be5e7
@ -1184,9 +1184,11 @@ void bch2_fs_journal_stop(struct journal *j)
|
||||
journal_quiesce(j);
|
||||
cancel_delayed_work_sync(&j->write_work);
|
||||
|
||||
BUG_ON(!bch2_journal_error(j) &&
|
||||
test_bit(JOURNAL_replay_done, &j->flags) &&
|
||||
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),
|
||||
"journal shutdown error: cur seq %llu but last empty seq %llu",
|
||||
journal_cur_seq(j), j->last_empty_seq);
|
||||
|
||||
if (!bch2_journal_error(j))
|
||||
clear_bit(JOURNAL_running, &j->flags);
|
||||
|
Loading…
Reference in New Issue
Block a user