]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/media/pci/meye/meye.c
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[karo-tx-linux.git] / drivers / media / pci / meye / meye.c
index 7bc775219f9722fb6e6dd2e27905cf6113cf7dfd..e5a76da860816897ff7740b905f16015d71aadc0 100644 (file)
@@ -1647,7 +1647,7 @@ static int meye_mmap(struct file *file, struct vm_area_struct *vma)
 
        vma->vm_ops = &meye_vm_ops;
        vma->vm_flags &= ~VM_IO;        /* not I/O memory */
-       vma->vm_flags |= VM_RESERVED;   /* avoid to swap out this VMA */
+       vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
        vma->vm_private_data = (void *) (offset / gbufsize);
        meye_vm_open(vma);