mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git] / drivers / vhost / vdpa.c
index ec32f785dfdec1012f71ff73f3ca623d89a2f5b8..9c5010ee20da9c30fd3c921f241d922a9818a071 100644 (file)
@@ -1315,7 +1315,7 @@ static int vhost_vdpa_mmap(struct file *file, struct vm_area_struct *vma)
        if (vma->vm_end - vma->vm_start != notify.size)
                return -ENOTSUPP;
 
-       vma->vm_flags |= VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP;
+       vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP);
        vma->vm_ops = &vhost_vdpa_vm_ops;
        return 0;
 }