userfaultfd-non-cooperative-selftest-enable-remove-event-test-for-shmem.patch removed from -mm tree
The patch titled
Subject: userfaultfd: non-cooperative: selftest: enable REMOVE event test for shmem
has been removed from the -mm tree. Its filename was
userfaultfd-non-cooperative-selftest-enable-remove-event-test-for-shmem.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: userfaultfd: non-cooperative: selftest: enable REMOVE event test for shmem
Now when madvise(MADV_REMOVE) notifies uffd reader, we should verify that appliciation actually sees zeros at the removed range.
Signed-off-by Mike Rapoport <[email protected]>
Reviewed-by Andrea Arcangeli <[email protected]>
Cc Hillf Danton <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
tools/testing/selftests/vm/userfaultfd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
tools/testing/selftests/vm/userfaultfd.c renamed from tools/testing/selftests/vm/userfaultfd.c~userfaultfd-non-cooperative-selftest-enable-remove-event-test-for-shmem +2 -4
@@ -569,9 +569,9 @@ static int userfaultfd_open(int features* part is accessed after mremap. Since hugetlbfs does not support * mremap, the entire monitored area is accessed in a single pass for * HUGETLB_TEST. -* The release of the pages currently generates event only for +* The release of the pages currently generates event for shmem and * anonymous memory (UFFD_EVENT_REMOVE), hence it is not checked -* for hugetlb and shmem. +* for hugetlb. */ static int faulting_process (void ) {
@@ -610,7 +610,6 @@ static int faulting_process(void) } } -#ifndef SHMEM_TEST if (release_pages (area_dst))return 1 ;
@@ -618,7 +617,6 @@ static int faulting_process(void)if (my_bcmp (area_dst + nr * page_size, zeropage, page_size)) fprintf(stderr, "nr %lu is not zero\n", nr), exit(1); } -#endif /* SHMEM_TEST */ #endif /* HUGETLB_TEST */
_
Patches currently in -mm which might be from [email protected] are