projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git]
/
drivers
/
vhost
/
vdpa.c
diff --git
a/drivers/vhost/vdpa.c
b/drivers/vhost/vdpa.c
index ec32f785dfdec1012f71ff73f3ca623d89a2f5b8..9c5010ee20da9c30fd3c921f241d922a9818a071 100644
(file)
--- a/
drivers/vhost/vdpa.c
+++ b/
drivers/vhost/vdpa.c
@@
-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;
- vm
a->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;
}