summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-07 08:27:07 +0100
committerChristian Brauner <brauner@kernel.org>2024-02-01 14:20:12 +0100
commitf525152a0f0ff34eb92b322703d76ba37095f556 (patch)
tree596ea4b5f90b906b107aa695893bd02df55163a7 /virt
parent6b865d6530230b0c446efd93e0207b8eed7eadb2 (diff)
downloadlinux-f525152a0f0ff34eb92b322703d76ba37095f556.tar.gz
linux-f525152a0f0ff34eb92b322703d76ba37095f556.tar.bz2
linux-f525152a0f0ff34eb92b322703d76ba37095f556.zip
iomap: factor out a iomap_writepage_map_block helper
Split the loop body that calls into the file system to map a block and add it to the ioend into a separate helper to prefer for refactoring of the surrounding code. Note that this was the only place in iomap_writepage_map that could return an error, so include the call to ->discard_folio into the new helper as that will help to avoid code duplication in the future. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20231207072710.176093-12-hch@lst.de Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions