]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/mlock.c
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[karo-tx-linux.git] / mm / mlock.c
index ef726e8aa8e9ca56c0713abfa4b621f44a210d4c..a948be4b7ba7673aa77cf7b537d8a650cd558a15 100644 (file)
@@ -227,7 +227,7 @@ long mlock_vma_pages_range(struct vm_area_struct *vma,
        if (vma->vm_flags & (VM_IO | VM_PFNMAP))
                goto no_mlock;
 
-       if (!((vma->vm_flags & (VM_DONTEXPAND | VM_RESERVED)) ||
+       if (!((vma->vm_flags & VM_DONTEXPAND) ||
                        is_vm_hugetlb_page(vma) ||
                        vma == get_gate_vma(current->mm))) {