]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/media/usb/usbvision/usbvision-video.c
mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[karo-tx-linux.git] / drivers / media / usb / usbvision / usbvision-video.c
index 8a4317979a43d784972283d4d61f978ff51236c2..9049fa290baf984a10fc639cadb1a6bd68c77569 100644 (file)
@@ -1108,8 +1108,7 @@ static int usbvision_mmap(struct file *file, struct vm_area_struct *vma)
        }
 
        /* VM_IO is eventually going to replace PageReserved altogether */
-       vma->vm_flags |= VM_IO;
-       vma->vm_flags |= VM_RESERVED;   /* avoid to swap out this VMA */
+       vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
 
        pos = usbvision->frame[i].data;
        while (size > 0) {