mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[platform/upstream/kernel-adaptation-pc.git] / drivers / media / platform / omap / omap_vout.c
index 66ac21d..134016f 100644 (file)
@@ -911,7 +911,7 @@ static int omap_vout_mmap(struct file *file, struct vm_area_struct *vma)
 
        q->bufs[i]->baddr = vma->vm_start;
 
-       vma->vm_flags |= VM_RESERVED;
+       vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
        vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
        vma->vm_ops = &omap_vout_vm_ops;
        vma->vm_private_data = (void *) vout;