bcachefs: Fix warning in bch2_fs_journal_stop()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 02:27:45 +0000 (22:27 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 06:07:23 +0000 (02:07 -0400)
commit7f2de6947f92cfa4be8e5eaa1237e962bb8ee65f
tree85408e1e12a2731b7f6e5f814f13dc81d3480e05
parent06f67437ab356e3140f51aea272d33ce28421f66
bcachefs: Fix warning in bch2_fs_journal_stop()

j->last_empty_seq needs to match j->seq when the journal is empty

Reported-by: syzbot+4093905737cf289b6b38@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c