]> www.infradead.org Git - users/hch/misc.git/commit
iomap: improve argument passing to iomap_read_folio_sync
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jul 2025 09:14:24 +0000 (11:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Jul 2025 13:31:36 +0000 (15:31 +0200)
commit69b315252bf11ac7f380c409436c263e92679b58
tree8350163db3ac8fd1cd1999858e9c51c7cd5a6815
parent1ae4b5b76901fe866b3e67a046d05fd5a4a3afbd
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>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/iomap/buffered-io.c