]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: remove xfs_page_mkwrite_iomap_ops
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Oct 2024 15:12:00 +0000 (16:12 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 5 Nov 2024 12:52:57 +0000 (13:52 +0100)
commitfe4e0faac931e01cd3a17ae45e45167e7855f048
treefc8272228f7f93ab320d233c536aee0c2c52f36d
parenta7fd3327d3ba208e1086ef972162fb54c7fb4bea
xfs: remove xfs_page_mkwrite_iomap_ops

Shared the regular buffered write iomap_ops with the page fault path
and just check for the IOMAP_FAULT flag to skip delalloc punching.

This keeps the delalloc punching checks in one place, and will make it
easier to convert iomap to an iter model where the begin and end
handlers are merged into a single callback.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_file.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h