[PATCH] unpaged: VM_UNPAGED
[linux-2.6.git] / mm / madvise.c
index 17aaf3e1644983a5a4fac14bef8f009f71fe866c..328a3bcce5271ee969e231962354159227da9eba 100644 (file)
@@ -126,7 +126,7 @@ static long madvise_dontneed(struct vm_area_struct * vma,
                             unsigned long start, unsigned long end)
 {
        *prev = vma;
-       if (vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_RESERVED))
+       if (vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_UNPAGED))
                return -EINVAL;
 
        if (unlikely(vma->vm_flags & VM_NONLINEAR)) {