From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Wenjie Qi <qwjhust@gmail.com>
Cc: chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, qiwenjie@xiaomi.com
Subject: Re: [PATCH v2] f2fs: don't leave the hashed inode while it's unlinked
Date: Mon, 24 Aug 2026 15:12:57 +0000 [thread overview]
Message-ID: <aoxfebJ1X6uV_D88@google.com> (raw)
In-Reply-To: <20260823095648.3107875-1-qiwenjie@xiaomi.com>
Hi Wenjie,
Yeah, valid points. Let me send v3.
On 08/23, Wenjie Qi wrote:
> Hi Jaegeuk,
>
> It looks like the original symlink construction error is lost here:
>
> err = __do_unlink(dir, inode, &dentry->d_name);
>
> If fscrypt_encrypt_symlink() or page_symlink() fails but __do_unlink()
> succeeds, err becomes zero. f2fs_handle_failed_inode() then releases the
> inode, and f2fs_symlink() returns success even though the directory entry
> has been removed.
>
> Is this intended? Should the rollback result be stored separately, for
> example in ret, while preserving the original construction error in err?
>
> There seems to be a similar issue in the give_up path. If rollback fails
> in a DIRSYNC directory, a successful f2fs_sync_fs() can overwrite the
> existing error with zero.
>
> Regards,
> Wenjie
next prev parent reply other threads:[~2026-08-24 15:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 20:01 [PATCH] " Jaegeuk Kim
2026-08-19 2:56 ` [f2fs-dev] " Chao Yu
2026-08-21 15:23 ` [f2fs-dev] [PATCH v2] " Jaegeuk Kim
2026-08-22 7:37 ` Chao Yu
2026-08-23 9:56 ` Wenjie Qi
2026-08-24 15:12 ` Jaegeuk Kim [this message]
2026-08-24 13:16 ` [f2fs-dev] " Chao Yu
2026-08-24 20:12 ` [f2fs-dev] [PATCH v3] " Jaegeuk Kim
2026-08-25 2:15 ` Chao Yu
2026-08-25 2:39 ` Wenjie Qi
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=aoxfebJ1X6uV_D88@google.com \
--to=jaegeuk@kernel.org \
--cc=chao@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=qiwenjie@xiaomi.com \
--cc=qwjhust@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®