]> git.ipfire.org Git - thirdparty/linux.git/commit
iov_iter: convert iter_xarray_populate_pages() to use folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Apr 2025 21:06:05 +0000 (22:06 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:05 +0000 (17:48 -0700)
commitb57f4f4f186d728a1b484be1f214f17d843b6a24
treeb5edab2ebbe3c8a9a624f4d1c544f25e3f8cbcbc
parenta55139579082e4bc9ea9b04003cb9f78c781e08b
iov_iter: convert iter_xarray_populate_pages() to use folios

ITER_XARRAY is exclusively used with xarrays that contain folios, not
pages, so extract folio pointers from it, not page pointers.  Removes a
hidden call to compound_head() and a use of find_subpage().

Link: https://lkml.kernel.org/r/20250402210612.2444135-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/iov_iter.c