X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=mm%2Fmadvise.c;h=2b7cf0400a217cd453641eaf097d1291125e1431;hb=7c9dfb5999a7ba90e93a96d9f3ce55a9e4978ad5;hp=17aaf3e1644983a5a4fac14bef8f009f71fe866c;hpb=849a8924a6740ecbf9711e015beca69425f0c429;p=linux-2.6-omap-h63xx.git diff --git a/mm/madvise.c b/mm/madvise.c index 17aaf3e1644..2b7cf0400a2 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -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_PFNMAP)) return -EINVAL; if (unlikely(vma->vm_flags & VM_NONLINEAR)) {