iomap: move all remaining per-folio logic into iomap_writepage_map
authorChristoph Hellwig <hch@lst.de>
Thu, 7 Dec 2023 07:27:02 +0000 (08:27 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 1 Feb 2024 13:20:11 +0000 (14:20 +0100)
commitcc9542534bf09f33b4da32025b31335588fcefb9
treef6a8f121fe0963847ca038577ab50f98da160ca2
parente3a491a26b62466ad14a423e8c81a04d5969bfe5
iomap: move all remaining per-folio logic into iomap_writepage_map

Move the tracepoint and the iomap check from iomap_do_writepage into
iomap_writepage_map.  This keeps all logic in one places, and leaves
iomap_do_writepage just as the wrapper for the callback conventions of
write_cache_pages, which will go away when that is converted to an
iterator.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231207072710.176093-7-hch@lst.de
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c