mm-gup_test-report-actual-pinned-bytes.patch removed from -mm tree
The quilt patch titled
Subject: mm/gup_test: report actual pinned bytes
has been removed from the -mm tree. Its filename was
mm-gup_test-report-actual-pinned-bytes.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Sarthak Sharma <[email protected]>
Subject: mm/gup_test: report actual pinned bytes
Date: Mon, 31 Aug 2026 15:43:04 +0530
__gup_test_ioctl() advances addr to the end of the current batch before checking if GUP pinned the entire requested batch. If GUP pins more than 0 pages but less than the requested batch size, addr still advances by the requested batch size.
The next iteration detects the partial pinning and breaks out of the loop. Again gup->size is calculated using addr - gup->addr, so it also includes the unpinned pages of the requested batch.
Calculate gup->size using the actual number of pages pinned multiplied by PAGE_SIZE.
---
mm/gup_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/gup_test.c renamed from mm/gup_test.c~mm-gup_test-report-actual-pinned-bytes +1 -1
@@ -188,7 +188,7 @@ static int __gup_test_ioctl(unsigned int nr_pages = i; gup->get_delta_usec =ktime_us_delta (end_time, start_time); - gup->size = addr - gup->addr; + gup->size = nr_pages *PAGE_SIZE ;/* * Take an un-benchmark-timed moment to verify DMA pinned
_
Patches currently in -mm which might be from [email protected] are
mm-gup_test-safely-calculate-gup-batch-size.patch selftests-mm-make-file-helpers-return-errors.patch selftests-mm-make-file-helpers-return-errors-fix.patch tools-lib-mm-add-shared-file-helpers.patch tools-lib-mm-move-hugepage_settings-out-of-selftests.patch tools-mm-move-gup_test-from-selftests-mm-to-tools-mm.patch tools-mm-make-gup_bench-a-benchmark-only-tool.patch selftests-mm-add-a-gup-selftest.patch