]> Gentwo Git Trees - linux/.git/commit
io_uring/zcrx: remove nth_page() usage within folio
authorDavid Hildenbrand <david@redhat.com>
Mon, 1 Sep 2025 15:03:41 +0000 (17:03 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:05 +0000 (14:22 -0700)
commitd99c57546d8f8ae4bcd2b5a83d77e248756f0cd1
treec8ab5e702b9fcf6b95d905ca7c13327b75fb190c
parente3c05b6e370c22451f87f2d230d131ad1bb49a60
io_uring/zcrx: remove nth_page() usage within folio

Within a folio/compound page, nth_page() is no longer required.  Given
that we call folio_test_partial_kmap()+kmap_local_page(), the code would
already be problematic if the pages would span multiple folios.

So let's just assume that all src pages belong to a single folio/compound
page and can be iterated ordinarily.  The dst page is currently always a
single page, so we're not actually iterating anything.

Link: https://lkml.kernel.org/r/20250901150359.867252-21-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
io_uring/zcrx.c