projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] ide: remove dead code from flagged_taskfile()
[powerpc.git]
/
mm
/
madvise.c
diff --git
a/mm/madvise.c
b/mm/madvise.c
index
20e075d
..
17aaf3e
100644
(file)
--- 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) || is_vm_hugetlb_page(vma
))
+ if (
vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_RESERVED
))
return -EINVAL;
if (unlikely(vma->vm_flags & VM_NONLINEAR)) {