selftests/mm: test UFFDIO_ZEROPAGE only when !hugetlb
authorPeter Xu <peterx@redhat.com>
Wed, 12 Apr 2023 16:42:34 +0000 (12:42 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:30:04 +0000 (16:30 -0700)
commit4af9ff29816ac011af143c9d5cd16ab75429a600
treebfcc6a2fca65a730c3fea462663fe2e459635b18
parent366e93c46576e77f1ccfdeab31127f40537e7484
selftests/mm: test UFFDIO_ZEROPAGE only when !hugetlb

Make the check as simple as "test_type == TEST_HUGETLB" because that's the
only mem that doesn't support ZEROPAGE.

Link: https://lkml.kernel.org/r/20230412164234.328168-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/userfaultfd.c