diff options
author | 2024-06-28 19:16:09 -0400 | |
---|---|---|
committer | 2024-06-28 19:16:41 -0400 | |
commit | 600b8be5e74713f220a18061c82c05f1e95ce9f6 (patch) | |
tree | e7532e405141954d28c90773033a156ba1ae3340 | |
parent | bcachefs: Delete old faulty bch2_trans_unlock() call (diff) | |
download | wireguard-linux-600b8be5e74713f220a18061c82c05f1e95ce9f6.tar.xz wireguard-linux-600b8be5e74713f220a18061c82c05f1e95ce9f6.zip |
bcachefs: Change bch2_fs_journal_stop() BUG_ON() to warning
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/journal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 13669dd0e375..51c2fa09d951 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -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); |