]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/gup: drop nth_page() usage in unpin_user_page_range_dirty_lock()
authorDavid Hildenbrand <david@redhat.com>
Mon, 1 Sep 2025 15:03:55 +0000 (17:03 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:09 +0000 (14:22 -0700)
commitb5ba761a7f5612759770117657577925fcb2e668
tree0bb56560c2df095da0f80d7234e11d754c6b53bb
parentce00897b94bc5c62fab962625efcf1ab824d3688
mm/gup: drop nth_page() usage in unpin_user_page_range_dirty_lock()

There is the concern that unpin_user_page_range_dirty_lock() might do some
weird merging of PFN ranges -- either now or in the future -- such that
PFN range is contiguous but the page range might not be.

Let's sanity-check for that and drop the nth_page() usage.

Link: https://lkml.kernel.org/r/20250901150359.867252-35-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/gup.c