memfd-test: move common code to a shared unit
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 1 Feb 2018 00:19:40 +0000 (16:19 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 01:18:39 +0000 (17:18 -0800)
commit29f34d1dd6657a0c7da875deb57775c67ff6bd86
tree0ad3f57f7202d5f74489adda3262155204365804
parent3037aeb99134b0907fe0901055570a329b1f583d
memfd-test: move common code to a shared unit

The memfd & fuse tests will share more common code in the following
commits to test hugetlb support.

Link: http://lkml.kernel.org/r/20171107122800.25517-9-marcandre.lureau@redhat.com
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/memfd/Makefile
tools/testing/selftests/memfd/common.c [new file with mode: 0644]
tools/testing/selftests/memfd/common.h [new file with mode: 0644]
tools/testing/selftests/memfd/fuse_test.c
tools/testing/selftests/memfd/memfd_test.c