From: sashiko-bot@kernel.org
To: 781735889@qq.com
Cc: tytso@mit.edu, linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext4: propagate errors from fast commit create replay
Date: Thu, 17 Sep 2026 03:37:00 +0000 [thread overview]
Message-ID: <20260917033701.351E71F000FF@smtp.kernel.org> (raw)
In-Reply-To: <tencent_46A95D4281B70962D6EC1D523A85C448DC09@qq.com>
> From: lty <781735889@qq.com>
>
> During fast-commit replay, ext4_fc_replay_create() can fail while
> looking up the parent directory, initializing a new directory, or
> dirtying the replayed inode. The parent lookup error jumps to the
> cleanup path while ret is still zero. Errors from ext4_init_new_dir()
> are explicitly converted to zero, and the return value from
> ext4_mark_inode_dirty() is ignored.
>
> Consequently, replay can report success and mount the filesystem even
> though the directory creation was not completely replayed. A failed
> parent lookup, for example, leaves an unconnected directory inode.
>
> Propagate these errors so journal recovery aborts rather than completing
> with inconsistent metadata.
>
> Tested with QEMU fast-commit directory replay and injected failures in
> the parent lookup, directory initialization, and inode dirtying paths.
> Before the change, recovery completed and e2fsck reported an unconnected
> directory inode or inconsistent inode metadata. With the change, JBD2
> reports recovery failure and the mount fails in all three cases.
>
> Fixes: 8016e29f4362 ("ext4: fast commit recovery path")
> Cc: stable@vger.kernel.org
> Signed-off-by: lty <781735889@qq.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_46A95D4281B70962D6EC1D523A85C448DC09@qq.com?part=1
next prev parent reply other threads:[~2026-09-17 3:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 3:28 [PATCH] ext4: propagate errors from fast commit create replay 781735889
2026-09-17 3:37 ` sashiko-bot [this message]
2026-09-24 16:25 ` Jan Kara
-- strict thread matches above, loose matches on Subject: below --
2026-09-17 3:27 781735889
2026-09-17 3:42 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260917033701.351E71F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=781735889@qq.com \
--cc=linux-ext4@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.