mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git] / mm / madvise.c
index ca672e37b38c1cac417c7b4886e62cce174f9d53..5a5a687d03c24d79ab5ba3ce6c639b6ba8a1d999 100644 (file)
@@ -176,7 +176,7 @@ success:
        /*
         * vm_flags is protected by the mmap_lock held in write mode.
         */
-       vma->vm_flags = new_flags;
+       vm_flags_reset(vma, new_flags);
        if (!vma->vm_file || vma_is_anon_shmem(vma)) {
                error = replace_anon_vma_name(vma, anon_name);
                if (error)