From: Hyunchul Lee <hyc.lee@gmail.com>
To: Zhan Xusheng <zhanxusheng1024@gmail.com>
Cc: linkinjeon@kernel.org, ernest.borowski.git@proton.me,
liubaolin12138@163.com, ntfs@lists.linux.dev,
linux-kernel@vger.kernel.org, zhanxusheng@xiaomi.com,
stable@vger.kernel.org
Subject: Re: [PATCH v11] ntfs: trim the sizes after a short write
Date: Fri, 27 Nov 2026 11:14:25 +0900 [thread overview]
Message-ID: <awjnga4nQqW-5TOM@hyunchul-PC02> (raw)
In-Reply-To: <20261126015731.3254689-1-zhanxusheng1024@gmail.com>
> - if (ret < 0 && ret != -EIOCBQUEUED) {
> + /*
> + * Both sizes were moved to end before the copy, so a short write,
> + * like a failed one, must take back what it did not write.
> + */
> + if (ret < count && ret != -EIOCBQUEUED) {
The rollback code is quite long. Could you extract it into a seperate
fucntion?
--
Thanks,
Hyunchul
prev parent reply other threads:[~2026-11-27 2:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 1:57 Zhan Xusheng
2026-11-26 6:53 ` liubaolin
2026-11-27 2:14 ` Hyunchul Lee [this message]
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=awjnga4nQqW-5TOM@hyunchul-PC02 \
--to=hyc.lee@gmail.com \
--cc=ernest.borowski.git@proton.me \
--cc=linkinjeon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liubaolin12138@163.com \
--cc=ntfs@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=zhanxusheng1024@gmail.com \
--cc=zhanxusheng@xiaomi.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®