Re: [PATCH v6 01/11] mm: add MAP_HUGETLB support to vm_mmap

2017-09-08 Thread Christoph Hellwig
On Thu, Sep 07, 2017 at 11:35:59AM -0600, Tycho Andersen wrote: > vm_mmap is exported, which means kernel modules can use it. In particular, > for testing XPFO support, we want to use it with the MAP_HUGETLB flag, so > let's support it via vm_mmap. > } else if (flags & MAP_HUGETLB) { > +

Re: [PATCH v6 01/11] mm: add MAP_HUGETLB support to vm_mmap

2017-09-08 Thread Christoph Hellwig
On Thu, Sep 07, 2017 at 11:35:59AM -0600, Tycho Andersen wrote: > vm_mmap is exported, which means kernel modules can use it. In particular, > for testing XPFO support, we want to use it with the MAP_HUGETLB flag, so > let's support it via vm_mmap. > } else if (flags & MAP_HUGETLB) { > +

[PATCH v6 01/11] mm: add MAP_HUGETLB support to vm_mmap

2017-09-07 Thread Tycho Andersen
vm_mmap is exported, which means kernel modules can use it. In particular, for testing XPFO support, we want to use it with the MAP_HUGETLB flag, so let's support it via vm_mmap. Signed-off-by: Tycho Andersen Tested-by: Marco Benatto ---

[PATCH v6 01/11] mm: add MAP_HUGETLB support to vm_mmap

2017-09-07 Thread Tycho Andersen
vm_mmap is exported, which means kernel modules can use it. In particular, for testing XPFO support, we want to use it with the MAP_HUGETLB flag, so let's support it via vm_mmap. Signed-off-by: Tycho Andersen Tested-by: Marco Benatto --- include/linux/mm.h | 2 ++ mm/mmap.c | 19