]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/uio/uio.c
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[karo-tx-linux.git] / drivers / uio / uio.c
index a783d533a1a6fe662e99cd26ebec87c6569bd9bf..5110f367f1f15884bb313468ff5f06453aafd7b4 100644 (file)
@@ -653,8 +653,6 @@ static int uio_mmap_physical(struct vm_area_struct *vma)
        if (mi < 0)
                return -EINVAL;
 
-       vma->vm_flags |= VM_IO | VM_RESERVED;
-
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
        return remap_pfn_range(vma,
@@ -666,7 +664,7 @@ static int uio_mmap_physical(struct vm_area_struct *vma)
 
 static int uio_mmap_logical(struct vm_area_struct *vma)
 {
-       vma->vm_flags |= VM_RESERVED;
+       vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
        vma->vm_ops = &uio_vm_ops;
        uio_vma_open(vma);
        return 0;