Web lists-archives.com

[PATCH 0/2] Add hugetlbfs support to memfd_create()




This is a resend of the patch sent in the RFC:
http://lkml.kernel.org/r/1502149672-7759-1-git-send-email-mike.kravetz@xxxxxxxxxx

It addresses the issues with the commit message raised by Michal Hocko.
Only the commit message is modified, the code from the RFC patch is the
same.

In addition, a new patch is included to modify the memfd selftest.  The
modifications allow basic functionality testing of memfd_create with
hugetlbfs.

Mike Kravetz (2):
  mm/shmem: add hugetlbfs support to memfd_create()
  selftests/memfd: Add memfd_create hugetlbfs selftest

 include/uapi/linux/memfd.h                 |  24 ++
 mm/shmem.c                                 |  37 ++-
 tools/testing/selftests/memfd/Makefile     |   2 +-
 tools/testing/selftests/memfd/memfd_test.c | 372 ++++++++++++++++++++++-------
 tools/testing/selftests/memfd/run_tests.sh |  69 ++++++
 5 files changed, 412 insertions(+), 92 deletions(-)
 create mode 100755 tools/testing/selftests/memfd/run_tests.sh

-- 
2.7.5