]> www.infradead.org Git - users/hch/misc.git/commit
iomap: replace iomap_folio_ops with iomap_write_ops
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Jun 2025 06:25:32 +0000 (08:25 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Jul 2025 13:31:36 +0000 (15:31 +0200)
commit1ae4b5b76901fe866b3e67a046d05fd5a4a3afbd
tree08922ee4c5fffba3798f31679e04f96d0efd4db3
parentb8024f8e0fd1b3e3eb86fa02479cf09bd698eb6b
iomap: replace iomap_folio_ops with iomap_write_ops

The iomap_folio_ops are only used for buffered writes, including the zero
and unshare variants.  Rename them to iomap_write_ops to better describe
the usage, and pass them through the call chain like the other operation
specific methods instead of through the iomap.

xfs_iomap_valid grows a IOMAP_HOLE check to keep the existing behavior
that never attached the folio_ops to a iomap representing a hole.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Acked-by: Damien Le Moal <dlemoal@kernel.org>
13 files changed:
Documentation/filesystems/iomap/design.rst
Documentation/filesystems/iomap/operations.rst
block/fops.c
fs/gfs2/bmap.c
fs/gfs2/bmap.h
fs/gfs2/file.c
fs/iomap/buffered-io.c
fs/xfs/xfs_file.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h
fs/xfs/xfs_reflink.c
fs/zonefs/file.c
include/linux/iomap.h