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 > SHMEM_HUGE_NEVER. User will need to specify "huge=" option to > enable huge page mappings. > > Reported-by: Hillf Danton <[email protected]> > Signed-off-by: Toshi Kani <[email protected]> > Cc: Andrew Morton <[email protected]> > Cc: Kirill A. Shutemov <[email protected]> > Cc: Hugh Dickins <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]> -- Kirill A. Shutemov

