mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[platform/adaptation/renesas_rcar/renesas_kernel.git] / mm / mlock.c
index ef726e8..a948be4 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))) {