mm: replace vma->vm_flags direct modifications with modifier calls
[linux-2.6-block.git] / mm / mprotect.c
index cce6a0e58fb507a3d1c017389c05a77fdba9d2ab..1d4843c97c2a1f97a97dde4608ebf1ea74878f47 100644 (file)
@@ -670,7 +670,7 @@ success:
         * vm_flags and vm_page_prot are protected by the mmap_lock
         * held in write mode.
         */
-       vma->vm_flags = newflags;
+       vm_flags_reset(vma, newflags);
        if (vma_wants_manual_pte_write_upgrade(vma))
                mm_cp_flags |= MM_CP_TRY_CHANGE_WRITABLE;
        vma_set_page_prot(vma);