]> www.infradead.org Git - users/willy/linux.git/commit
iomap: Use folio offsets instead of page offsets
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 28 Apr 2021 12:20:48 +0000 (08:20 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 16 Dec 2021 20:49:52 +0000 (15:49 -0500)
commit431c0566bb60780238534dc1fdd709acca1d0795
tree68ab9e62b90b087f1fb0506b61a9a98e0a6db6f6
parent8ffd74e9a8161df544ce63b49a5a092bcb18f8e6
iomap: Use folio offsets instead of page offsets

Pass a folio around instead of the page, and make sure the offset
is relative to the start of the folio instead of the start of a page.
Also use size_t for offset & length to make it clear that these are byte
counts, and to support >2GB folios in the future.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/iomap/buffered-io.c