mm/vma: make is_vma_temporary_stack() available for general use
[linux-2.6-microblaze.git] / mm / khugepaged.c
index b679908..c659c68 100644 (file)
@@ -308,8 +308,6 @@ struct attribute_group khugepaged_attr_group = {
 };
 #endif /* CONFIG_SYSFS */
 
-#define VM_NO_KHUGEPAGED (VM_SPECIAL | VM_HUGETLB)
-
 int hugepage_madvise(struct vm_area_struct *vma,
                     unsigned long *vm_flags, int advice)
 {
@@ -423,7 +421,7 @@ static bool hugepage_vma_check(struct vm_area_struct *vma,
        }
        if (!vma->anon_vma || vma->vm_ops)
                return false;
-       if (is_vma_temporary_stack(vma))
+       if (vma_is_temporary_stack(vma))
                return false;
        return !(vm_flags & VM_NO_KHUGEPAGED);
 }