bcachefs: Fix recovery when forced to use JSET_NO_FLUSH journal entry
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 3 Nov 2023 15:55:44 +0000 (11:55 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 5 Nov 2023 02:19:13 +0000 (22:19 -0400)
commit5a53f851e6fe0e7cc41e682a4a9e40bb178fb80b
tree3ce3a9377c48989276eb90689ca77fba9697c281
parentce3e9a8a10086b28444cab1431dfc926787ecfcb
bcachefs: Fix recovery when forced to use JSET_NO_FLUSH journal entry

When we didn't find anything in the journal that we'd like to use, and
we're forced to use whatever we can find - that entry will have been a
JSET_NO_FLUSH entry with a garbage last_seq value, since it's not
normally used.

Initialize it to something sane, for bch2_fs_journal_start().

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c