Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm, shmem: fix handling /sys/kernel/mm/transparent_hugepage/shmem_ena…
…bled /sys/kernel/mm/transparent_hugepage/shmem_enabled controls if we want to allocate huge pages when allocate pages for private in-kernel shmem mount. Unfortunately, as Dan noticed, I've screwed it up and the only way to make kernel allocate huge page for the mount is to use "force" there. All other values will be effectively ignored. Link: http://lkml.kernel.org/r/[email protected] Fixes: 5a6e75f ("shmem: prepare huge= mount option and sysfs knob") Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Dan Carpenter <[email protected]> Cc: stable <[email protected]> [4.8+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information