Re: [PATCH] jbd2: don't start a fast commit while the journal is marked empty
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:53:39 EST
On Wed, 07 Oct 2026 09:41:09 +0900, Daejun Park wrote:
> jbd2_journal_flush() checkpoints everything, and
> jbd2_mark_journal_empty() then writes the journal superblock with
> s_start == 0 and the fast commit feature cleared. It sets JBD2_FLUSHED
> so that the next commit writes the log tail and the feature back, but
> only jbd2_journal_commit_transaction() looks at that flag. A fast commit
> started before the next full commit writes its blocks while the
> superblock on disk still says the log is empty: jbd2_journal_recover()
> returns at once and the fast commit is never replayed.
>
> [...]
Applied, thanks!
[1/1] jbd2: don't start a fast commit while the journal is marked empty
commit: 18d8d4b5d1b5fbbe6da96610e5c1d4853c46d441
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>