]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: improve argument passing to iomap_read_folio_sync
authorChristoph Hellwig <hch@lst.de>
Thu, 10 Jul 2025 13:33:36 +0000 (15:33 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 14 Jul 2025 08:51:33 +0000 (10:51 +0200)
commite6caf01d3f57687777d0e15400ffdd3917ce7f72
treebba96474caae43fa0dd6b3f673fb6348f6322a13
parent2a5574fc57d13031f869c409181bdeadd75770e1
iomap: improve argument passing to iomap_read_folio_sync

Pass the iomap_iter and derive the map inside iomap_read_folio_sync
instead of in the caller, and use the more descriptive srcmap name for
the source iomap.  Stop passing the offset into folio argument as it
can be derived from the folio and the file offset.  Rename the
variables for the offset into the file and the length to be more
descriptive and match the rest of the code.

Rename the function itself to iomap_read_folio_range to make the use
more clear.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/20250710133343.399917-13-hch@lst.de
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c