+6
−2
Loading
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAEOV4 CVE: NA -------------------------------- When thp_exec_enabled is set to 3, try PMD mapping THP first, if failed, then try mTHP like cont-64K on ARM64. The previous implementation use hugepage_madvise() in try_enable_file_exec_thp() and it will always set VM_HUGEPAGE to vm_flags, so we lost this semantic, let's check PMD_ORDER by thp_vma_allowable_order() to correct the semantic. And now the khugepaged_enter_vma() step in hugepage_madvise() is missing, this is OK because the process is already entered in khugepaged after this commit 613bec09 ("mm: mmap: register suitable readonly file vmas for khugepaged"). Signed-off-by:Nanyong Sun <sunnanyong@huawei.com>