Re: [PATCH 2/2] shmem: call __thp_get_unmapped_area to alloc a pmd-aligned addr

2016-09-12 Thread Kirill A. Shutemov
On Fri, Sep 09, 2016 at 04:24:23PM -0600, Toshi Kani wrote: > shmem_get_unmapped_area() provides a functionality similar > to __thp_get_unmapped_area() as both allocate a pmd-aligned > address. > > Change shmem_get_unmapped_area() to do shm-specific checks > and then call __thp_get_unmapped_area()

[PATCH 2/2] shmem: call __thp_get_unmapped_area to alloc a pmd-aligned addr

2016-09-09 Thread Toshi Kani
shmem_get_unmapped_area() provides a functionality similar to __thp_get_unmapped_area() as both allocate a pmd-aligned address. Change shmem_get_unmapped_area() to do shm-specific checks and then call __thp_get_unmapped_area() for allocating a pmd-aligned address. link: https://lkml.org/lkml/2016