]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: lift zeroed mapping handling into iomap_zero_range()
authorBrian Foster <bfoster@redhat.com>
Fri, 15 Nov 2024 20:01:54 +0000 (15:01 -0500)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 Nov 2024 08:35:25 +0000 (09:35 +0100)
commit889ac75787cbeb129df7faf917ce7d53a32ea696
tree72980a3dbd520779508fa7c11a37c283bcc1e219
parent2519369201f36a6b2571bc672c4e48f88c6b68d6
iomap: lift zeroed mapping handling into iomap_zero_range()

In preparation for special handling of subranges, lift the zeroed
mapping logic from the iterator into the caller. Since this puts the
pagecache dirty check and flushing in the same place, streamline the
comments a bit as well.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/r/20241115200155.593665-3-bfoster@redhat.com
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c