X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=mm%2Fmremap.c;h=1903bdf65e428d88e5bf124243d99ee7ab7c51e3;hb=df849a1529c106f7460e51479ca78fe07b07dc8c;hp=b535438c363cfb9c6d80528c2c056962ef2e038a;hpb=2fc2991175bf77395e6b15fe6b2304d3bf72da40;p=powerpc.git diff --git a/mm/mremap.c b/mm/mremap.c index b535438c36..1903bdf65e 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -323,7 +324,7 @@ unsigned long do_mremap(unsigned long addr, /* We can't remap across vm area boundaries */ if (old_len > vma->vm_end - addr) goto out; - if (vma->vm_flags & VM_DONTEXPAND) { + if (vma->vm_flags & (VM_DONTEXPAND | VM_PFNMAP)) { if (new_len > old_len) goto out; }