The inappropriate settings can be accepted by "enabled" and "defrag" interface, as the following example shows. This series reworks the related functions and fixes the issue by the way. # cat /sys/kernel/mm/transparent_hugepage/enabled always [madvise] never # echo neveroff > /sys/kernel/mm/transparent_hugepage/enabled # cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] Gavin Shan (3): mm: Rework {enabled,defrag}_store() mm: Rework {enabled,defrag}_show() mm: Rework setup_transparent_hugepage() mm/huge_memory.c | 216 +++++++++++++++++++++++++++-------------------- 1 file changed, 125 insertions(+), 91 deletions(-) -- 2.23.0