mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zhan Xusheng <zhanxusheng1024@gmail.com>
To: ernest.borowski.git@proton.me
Cc: linkinjeon@kernel.org, hyc.lee@gmail.com, liubaolin12138@163.com,
	ntfs@lists.linux.dev, linux-kernel@vger.kernel.org,
	zhanxusheng@xiaomi.com
Subject: Re: [PATCH v8] ntfs: trim the sizes after a short write
Date: Mon, 23 Nov 2026 11:09:54 +0800	[thread overview]
Message-ID: <20261123030954.1614965-1-zhanxusheng1024@gmail.com> (raw)
In-Reply-To: <179537167473.2649834.14001007738076272792.b4-reply@b4>

Hi Ernest,

On Sun, Nov 22, 2026 at 06:21:27PM +0000, Ernest Borowski wrote:
> Zeroing from a worker when the caller has a fatal signal pending fixes
> it. Something like this on top of v8:

Thanks.  I reproduced it on ntfs-next f674e4b6c315 at 4K and 64K
clusters: with v8 the page stored through the mapping reads back as
zeroes, with your diff it is kept, and v8's other tests give the same
results.

I'd like to fold the diff into v9 as it is.  Can I add your
Co-developed-by and Signed-off-by for it?

> Patch 7 has the same kind of helper in fs/ntfs/iomap.c, so whichever
> lands second can share one copy.

They zero through different paths: the one in patch 7 calls
ntfs_zero_range(), whose ntfs_iomap_valid() only accepts delalloc
mappings, while v8 zeroes allocated clusters past the initialized
size.  A shared helper would need the zeroing function passed in.

Thanks,
Zhan Xusheng

      reply	other threads:[~2026-11-23  3:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  2:35 Zhan Xusheng
2026-11-20  7:19 ` liubaolin
2026-11-22 18:21 ` Ernest Borowski
2026-11-23  3:09   ` Zhan Xusheng [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=20261123030954.1614965-1-zhanxusheng1024@gmail.com \
    --to=zhanxusheng1024@gmail.com \
    --cc=ernest.borowski.git@proton.me \
    --cc=hyc.lee@gmail.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liubaolin12138@163.com \
    --cc=ntfs@lists.linux.dev \
    --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®