bcachefs: Fix bch2_journal_meta()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 25 Dec 2021 23:40:15 +0000 (18:40 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:19 +0000 (17:09 -0400)
commit4141fde0be05beb529ee6433b9808f815254901b
treedad1b32885b9ae4c9978b564e5599de1a6114256
parente75b2d4c1c829142f8e3e64a9b3cf7faedcfb640
bcachefs: Fix bch2_journal_meta()

This patch ensures that the journal entry written gets written as flush
entry, which is important for the shutdown path - the last entry written
needs to be a flush entry.

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