mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
bcachefs: Fix a faulty assertion
If journal replay hasn't finished, the journal can't be empty - oops. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e46b855734
commit
fdbb88ac01
1 changed files with 1 additions and 0 deletions
|
@ -953,6 +953,7 @@ void bch2_fs_journal_stop(struct journal *j)
|
|||
journal_quiesce(j);
|
||||
|
||||
BUG_ON(!bch2_journal_error(j) &&
|
||||
test_bit(JOURNAL_REPLAY_DONE, &j->flags) &&
|
||||
(journal_entry_is_open(j) ||
|
||||
j->last_empty_seq + 1 != journal_cur_seq(j)));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue