mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git] / fs / proc / task_mmu.c
index a944e1816364dd8ba9e0ceccfebed1fc1f262414..6a96e1713fd588af12fb1a94d7af57d53d0cb322 100644 (file)
@@ -1299,7 +1299,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf,
                        for_each_vma(vmi, vma) {
                                if (!(vma->vm_flags & VM_SOFTDIRTY))
                                        continue;
-                               vma->vm_flags &= ~VM_SOFTDIRTY;
+                               vm_flags_clear(vma, VM_SOFTDIRTY);
                                vma_set_page_prot(vma);
                        }