Re: [PATCH v8] ntfs: trim the sizes after a short write
From: Ernest Borowski
Date: Mon Nov 23 2026 - 18:54:37 EST
Hi Zhan,
On Mon, Nov 23, 2026 at 11:09:54AM +0800, Zhan Xusheng wrote:
> 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?
Yes, please:
Co-developed-by: Ernest Borowski <ernest.borowski.git@xxxxxxxxx>
Signed-off-by: Ernest Borowski <ernest.borowski.git@xxxxxxxxx>
> 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.
That is how ntfs-next does it, but patch 6 of the same series removes
that delalloc-only ntfs_iomap_valid() and ntfs_zero_read_iomap_next().
After it, ntfs_zero_range() is
iomap_zero_range(inode, offset, length, NULL,
ntfs_seek_iomap_next, &ntfs_iomap_folio_ops, NULL);
which is the call in the diff, so both helpers zero the same way and
the one that lands second can drop its copy. It only matters for the
order of merging; v9 is fine with its own copy.
Thanks,
Ernest