selftests/vm: use memfd for hugepage-mmap test
authorPeter Xu <peterx@redhat.com>
Thu, 17 Nov 2022 21:29:15 +0000 (16:29 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:59:01 +0000 (15:59 -0800)
commit91a99f1d1248bdde674b66e20ac472ec76f6a202
treeed0338121031b4223dbbdf8527186305644b3c4b
parent47939359add5242d27ee6a30e8bcb0cef15ba45c
selftests/vm: use memfd for hugepage-mmap test

This test was overlooked with a hard-coded mntpoint path in test when
we're removing the hugetlb mntpoint in commit 0796c7b8be84.  Fix it up so
the test can keep running.

Link: https://lkml.kernel.org/r/Y3aojfUC2nSwbCzB@x1n
Fixes: 0796c7b8be84 ("selftests/vm: drop mnt point for hugetlb in run_vmtests.sh")
Signed-off-by: Peter Xu <peterx@redhat.com>
Reported-by: Joel Savitz <jsavitz@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/hugepage-mmap.c