diff options
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index cdef6cea8900..b65187f0c74e 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -208,8 +208,10 @@ static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm) | |||
208 | struct file *file; | 208 | struct file *file; |
209 | 209 | ||
210 | if (mpnt->vm_flags & VM_DONTCOPY) { | 210 | if (mpnt->vm_flags & VM_DONTCOPY) { |
211 | long pages = vma_pages(mpnt); | ||
212 | mm->total_vm -= pages; | ||
211 | __vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file, | 213 | __vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file, |
212 | -vma_pages(mpnt)); | 214 | -pages); |
213 | continue; | 215 | continue; |
214 | } | 216 | } |
215 | charge = 0; | 217 | charge = 0; |