mm: account the total_vm in the vm_stat_account()
[deliverable/linux.git] / kernel / fork.c
index 8efac1fe56bc984655c096170ce42c68fdc6a897..aaa8813c45d1a2079203c70cbdc4e53a4d51e5ff 100644 (file)
@@ -381,10 +381,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
                struct file *file;
 
                if (mpnt->vm_flags & VM_DONTCOPY) {
-                       long pages = vma_pages(mpnt);
-                       mm->total_vm -= pages;
                        vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file,
-                                                               -pages);
+                                                       -vma_pages(mpnt));
                        continue;
                }
                charge = 0;
This page took 0.025268 seconds and 5 git commands to generate.