mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git] / fs / userfaultfd.c
index f3c75c6222de6d7577d9e77b666e1e590435b302..44d1ee429eb0c71d223cfe8364506dd636143d6f 100644 (file)
@@ -113,7 +113,7 @@ static void userfaultfd_set_vm_flags(struct vm_area_struct *vma,
 {
        const bool uffd_wp_changed = (vma->vm_flags ^ flags) & VM_UFFD_WP;
 
-       vma->vm_flags = flags;
+       vm_flags_reset(vma, flags);
        /*
         * For shared mappings, we want to enable writenotify while
         * userfaultfd-wp is enabled (see vma_wants_writenotify()). We'll simply