]> Gentwo Git Trees - linux/.git/commit
xfs: fill dirty folios on zero range of unwritten mappings
authorBrian Foster <bfoster@redhat.com>
Fri, 3 Oct 2025 13:46:39 +0000 (09:46 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Nov 2025 11:57:25 +0000 (12:57 +0100)
commit77c475692c5e4e72eee9de869056008e62d3733b
tree9c2a83e2938d229ea26b2cde55cb196d50c4382b
parent5c13dde963dfe38ad88757e53d1fb8883cd01385
xfs: fill dirty folios on zero range of unwritten mappings

Use the iomap folio batch mechanism to select folios to zero on zero
range of unwritten mappings. Trim the resulting mapping if the batch
is filled (unlikely for current use cases) to distinguish between a
range to skip and one that requires another iteration due to a full
batch.

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/xfs/xfs_iomap.c