Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly
From: Kirill A. Shutemov <hidden>
Date: 2016-09-12 09:59:48
Also in:
lkml, nvdimm
From: Kirill A. Shutemov <hidden>
Date: 2016-09-12 09:59:48
Also in:
lkml, nvdimm
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 <redacted> Signed-off-by: Toshi Kani <redacted> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Kirill A. Shutemov <redacted> Cc: Hugh Dickins <hughd@google.com>
Acked-by: Kirill A. Shutemov <redacted> -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>