File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tools/testing/selftests/vm Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -569,9 +569,9 @@ static int userfaultfd_open(int features)
569
569
* part is accessed after mremap. Since hugetlbfs does not support
570
570
* mremap, the entire monitored area is accessed in a single pass for
571
571
* HUGETLB_TEST.
572
- * The release of the pages currently generates event only for
572
+ * The release of the pages currently generates event for shmem and
573
573
* anonymous memory (UFFD_EVENT_REMOVE), hence it is not checked
574
- * for hugetlb and shmem .
574
+ * for hugetlb.
575
575
*/
576
576
static int faulting_process (void )
577
577
{
@@ -610,15 +610,13 @@ static int faulting_process(void)
610
610
}
611
611
}
612
612
613
- #ifndef SHMEM_TEST
614
613
if (release_pages (area_dst ))
615
614
return 1 ;
616
615
617
616
for (nr = 0 ; nr < nr_pages ; nr ++ ) {
618
617
if (my_bcmp (area_dst + nr * page_size , zeropage , page_size ))
619
618
fprintf (stderr , "nr %lu is not zero\n" , nr ), exit (1 );
620
619
}
621
- #endif /* SHMEM_TEST */
622
620
623
621
#endif /* HUGETLB_TEST */
624
622
You can’t perform that action at this time.
0 commit comments