bcachefs: Journal seq now incremented at entry open, not close
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 28 Feb 2022 21:35:42 +0000 (16:35 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:26 +0000 (17:09 -0400)
commitf0a3a2ccabc5ae1e2c7d588a6a4f77d216b1d4cf
treee73497e869282d970457a8cae86d792f7bde39d6
parentb66fbf33425f30aacbbb95182c22d2df5b1d3b12
bcachefs: Journal seq now incremented at entry open, not close

This patch changes journal_entry_open() to initialize the new journal
entry, not __journal_entry_close().

This also means that journal_cur_seq() refers to the sequence number of
the last journal entry when we don't have an open journal entry, not the
next one.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_gc.c
fs/bcachefs/journal.c
fs/bcachefs/journal_io.c
fs/bcachefs/journal_reclaim.c
fs/bcachefs/super-io.c