Commit b4443772 authored by Anshuman Khandual's avatar Anshuman Khandual Committed by Linus Torvalds
Browse files

mm/vma: move VM_NO_KHUGEPAGED into generic header

Patch series "mm/vma: some more minor changes", v2.

The motivation here is to consolidate VMA flags and helpers in generic
memory header and reduce code duplication when ever applicable.  If there
are other possible similar instances which might be missing here, please
do let me me know.  I will be happy to incorporate them.

This patch (of 3):

Move VM_NO_KHUGEPAGED into generic header (include/linux/mm.h).  This just
makes sure that no VMA flag is scattered in individual function files any
longer.  While at this, fix an old comment which is no longer valid.  This
should not cause any functional change.
Signed-off-by: default avatarAnshuman Khandual <>
Signed-off-by: default avatarAndrew Morton <>
Acked-by: default avatarVlastimil Babka <>
Cc: Ingo Molnar <>
Cc: Michael Ellerman <>
Cc: Paul Mackerras <>
Cc: Thomas Gleixner <>

Signed-off-by: default avatarLinus Torvalds <>
parent b2a403fd
......@@ -356,10 +356,12 @@ extern unsigned int kobjsize(const void *objp);
* Special vmas that are non-mergable, non-mlock()able.
* Note: mm/huge_memory.c VM_NO_THP depends on this definition.
/* This mask prevents VMA from being scanned with khugepaged */
/* This mask defines which mm->def_flags a process can inherit its parent */
......@@ -308,8 +308,6 @@ struct attribute_group khugepaged_attr_group = {
#endif /* CONFIG_SYSFS */
int hugepage_madvise(struct vm_area_struct *vma,
unsigned long *vm_flags, int advice)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment