selftests/vm: use memfd for hugepage-mremap test
authorPeter Xu <peterx@redhat.com>
Fri, 14 Oct 2022 14:40:13 +0000 (10:40 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:11 +0000 (17:37 -0800)
commit4705700d4fef3178e93230f53c2c528569744bb6
tree40f16c882426c3040f7896783ff45de344794d8f
parent62f33fa228003a419a9484eed5133447a280387c
selftests/vm: use memfd for hugepage-mremap test

For dropping the hugetlb mountpoint in run_vmtests.sh.  Cleaned it up a
little bit around the changed codes.

Link: https://lkml.kernel.org/r/20221014144013.94027-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/hugepage-mremap.c