mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git] / drivers / infiniband / hw / vmw_pvrdma / pvrdma_verbs.c
index 19176583dbde680e20d4da7ac11c2eb895f8e3a1..9f54aa90a35a67cd44df5ad63a6c7f5ec3195188 100644 (file)
@@ -408,7 +408,7 @@ int pvrdma_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vma)
        }
 
        /* Map UAR to kernel space, VM_LOCKED? */
-       vma->vm_flags |= VM_DONTCOPY | VM_DONTEXPAND;
+       vm_flags_set(vma, VM_DONTCOPY | VM_DONTEXPAND);
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
        if (io_remap_pfn_range(vma, start, context->uar.pfn, size,
                               vma->vm_page_prot))