]> 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, 9 Dec 2021 20:51:40 +0000 (15:51 -0500)
commit39bc7529122319a553751de4429d8b042b1cd8d1
tree2e018e8a488a4004f03a96475ec5479c1522d9b1
parentc19f8515f37099e85ad6acee42a36ff4587c48fd
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