]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: remove old partial eof zeroing optimization
authorBrian Foster <bfoster@redhat.com>
Fri, 3 Oct 2025 13:46:40 +0000 (09:46 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Nov 2025 11:57:25 +0000 (12:57 +0100)
commit39be21386d14974393ac45eda11942989720f81b
tree829a4bd7d306aa81921feb9dcbc864f65ca55fed
parent77c475692c5e4e72eee9de869056008e62d3733b
iomap: remove old partial eof zeroing optimization

iomap_zero_range() optimizes the partial eof block zeroing use case
by force zeroing if the mapping is dirty. This is to avoid frequent
flushing on file extending workloads, which hurts performance.

Now that the folio batch mechanism provides a more generic solution
and is used by the only real zero range user (XFS), this isolated
optimization is no longer needed. Remove the unnecessary code and
let callers use the folio batch or fall back to flushing by default.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c