Re: [RFC PATCH 0/3] restructure memfd code

2017-11-21 Thread Mike Kravetz
On 11/21/2017 08:32 AM, Khalid Aziz wrote: > On Wed, 2017-11-08 at 17:41 -0800, Mike Kravetz wrote: >> With the addition of memfd hugetlbfs support, we now have the >> situation >> where memfd depends on TMPFS -or- HUGETLBFS. Previously, memfd was >> only >> supported on tmpfs, so it made sense th

Re: [RFC PATCH 0/3] restructure memfd code

2017-11-21 Thread Khalid Aziz
On Wed, 2017-11-08 at 17:41 -0800, Mike Kravetz wrote: > With the addition of memfd hugetlbfs support, we now have the > situation > where memfd depends on TMPFS -or- HUGETLBFS.  Previously, memfd was > only > supported on tmpfs, so it made sense that the code resides in > shmem.c. > > This patch

Re: [RFC PATCH 0/3] restructure memfd code

2017-11-20 Thread Mike Kravetz
On 11/20/2017 02:28 AM, Marc-André Lureau wrote: > Hi > > On Thu, Nov 9, 2017 at 2:41 AM, Mike Kravetz wrote: >> With the addition of memfd hugetlbfs support, we now have the situation >> where memfd depends on TMPFS -or- HUGETLBFS. Previously, memfd was only >> supported on tmpfs, so it made se

Re: [RFC PATCH 0/3] restructure memfd code

2017-11-20 Thread Marc-André Lureau
Hi On Thu, Nov 9, 2017 at 2:41 AM, Mike Kravetz wrote: > With the addition of memfd hugetlbfs support, we now have the situation > where memfd depends on TMPFS -or- HUGETLBFS. Previously, memfd was only > supported on tmpfs, so it made sense that the code resides in shmem.c. > > This patch serie

[RFC PATCH 0/3] restructure memfd code

2017-11-08 Thread Mike Kravetz
With the addition of memfd hugetlbfs support, we now have the situation where memfd depends on TMPFS -or- HUGETLBFS. Previously, memfd was only supported on tmpfs, so it made sense that the code resides in shmem.c. This patch series moves the memfd code to separate files (memfd.c and memfd.h). I