Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly

2016-09-22 Thread Hugh Dickins
On Thu, 22 Sep 2016, Aneesh Kumar K.V wrote: > Toshi Kani writes: > > > shmem_get_unmapped_area() checks SHMEM_SB(sb)->huge incorrectly, > > which leads to a reversed effect of "huge=" mount option. > > > > Fix the check in shmem_get_unmapped_area(). > > > > Note, the default value of SHMEM_SB(sb

Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly

2016-09-22 Thread Aneesh Kumar K.V
Toshi Kani writes: > shmem_get_unmapped_area() checks SHMEM_SB(sb)->huge incorrectly, > which leads to a reversed effect of "huge=" mount option. > > Fix the check in shmem_get_unmapped_area(). > > Note, the default value of SHMEM_SB(sb)->huge remains as > SHMEM_HUGE_NEVER. User will need to spe

Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly

2016-09-12 Thread Kirill A. Shutemov
On Fri, Sep 09, 2016 at 04:24:22PM -0600, Toshi Kani wrote: > shmem_get_unmapped_area() checks SHMEM_SB(sb)->huge incorrectly, > which leads to a reversed effect of "huge=" mount option. > > Fix the check in shmem_get_unmapped_area(). > > Note, the default value of SHMEM_SB(sb)->huge remains as >

[PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly

2016-09-09 Thread Toshi Kani
shmem_get_unmapped_area() checks SHMEM_SB(sb)->huge incorrectly, which leads to a reversed effect of "huge=" mount option. Fix the check in shmem_get_unmapped_area(). Note, the default value of SHMEM_SB(sb)->huge remains as SHMEM_HUGE_NEVER. User will need to specify "huge=" option to enable hug