]> Git Repo - linux.git/commit
mm: thp: kill transparent_hugepage_active()
authorYang Shi <[email protected]>
Thu, 16 Jun 2022 17:48:37 +0000 (10:48 -0700)
committerakpm <[email protected]>
Mon, 18 Jul 2022 00:14:33 +0000 (17:14 -0700)
commit9fec51689ff60d9766b38051a0b1692f93d95364
tree3a49d1f60fa549d41904e4be210d351391d56502
parentf707fa493784b515ced01d4e261afe16fc784b5d
mm: thp: kill transparent_hugepage_active()

The transparent_hugepage_active() was introduced to show THP eligibility
bit in smaps in proc, smaps is the only user.  But it actually does the
similar check as hugepage_vma_check() which is used by khugepaged.  We
definitely don't have to maintain two similar checks, so kill
transparent_hugepage_active().

This patch also fixed the wrong behavior for VM_NO_KHUGEPAGED vmas.

Also move hugepage_vma_check() to huge_memory.c and huge_mm.h since it
is not only for khugepaged anymore.

[[email protected]: check vma->vm_mm, per Zach]
[[email protected]: add comment to vdso check]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yang Shi <[email protected]>
Reviewed-by: Zach O'Keefe <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
fs/proc/task_mmu.c
include/linux/huge_mm.h
include/linux/khugepaged.h
mm/huge_memory.c
mm/khugepaged.c
This page took 0.058495 seconds and 4 git commands to generate.