]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iov_iter: don't require contiguous pages in iov_iter_extract_bvec_pages
authorMing Lei <ming.lei@redhat.com>
Thu, 24 Oct 2024 05:00:15 +0000 (07:00 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 15:14:28 +0000 (09:14 -0600)
commite4e535bff2bc82bb49a633775f9834beeaa527db
treec613c80066f70a4af04c00bc5be33ac981b7102d
parentf1be1788a32e8fa63416ad4518bbd1a85a825c9d
iov_iter: don't require contiguous pages in iov_iter_extract_bvec_pages

The iov_iter_extract_pages interface allows to return physically
discontiguous pages, as long as all but the first and last page
in the array are page aligned and page size.  Rewrite
iov_iter_extract_bvec_pages to take advantage of that instead of only
returning ranges of physically contiguous pages.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
[hch: minor cleanups, new commit log]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241024050021.627350-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/iov_iter.c