]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/madvise.c
[PATCH] NTP shift_right cleanup
[linux-2.6-omap-h63xx.git] / mm / madvise.c
index 20e075d1c64c9c64674e5fc418c6643418931661..17aaf3e1644983a5a4fac14bef8f009f71fe866c 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) || is_vm_hugetlb_page(vma))
+       if (vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_RESERVED))
                return -EINVAL;
 
        if (unlikely(vma->vm_flags & VM_NONLINEAR)) {