diff options
author | Hugh Dickins <hugh@veritas.com> | 2005-10-29 21:15:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 00:40:37 -0400 |
commit | ab50b8ed818016cfecd747d6d4bb9139986bc029 (patch) | |
tree | 33c666578c14dccce05b3f7a5538405098eebcc4 /mm/mremap.c | |
parent | 72866f6f277ec0ddd6df7a3b6ecdcf59a28de115 (diff) |
[PATCH] mm: vm_stat_account unshackled
The original vm_stat_account has fallen into disuse, with only one user, and
only one user of vm_stat_unaccount. It's easier to keep track if we convert
them all to __vm_stat_account, then free it from its __shackles.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/mremap.c')
-rw-r--r-- | mm/mremap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mremap.c b/mm/mremap.c index f343fc73a8b..55df8f53e84 100644 --- a/mm/mremap.c +++ b/mm/mremap.c | |||
@@ -233,7 +233,7 @@ static unsigned long move_vma(struct vm_area_struct *vma, | |||
233 | * since do_munmap() will decrement it by old_len == new_len | 233 | * since do_munmap() will decrement it by old_len == new_len |
234 | */ | 234 | */ |
235 | mm->total_vm += new_len >> PAGE_SHIFT; | 235 | mm->total_vm += new_len >> PAGE_SHIFT; |
236 | __vm_stat_account(mm, vma->vm_flags, vma->vm_file, new_len>>PAGE_SHIFT); | 236 | vm_stat_account(mm, vma->vm_flags, vma->vm_file, new_len>>PAGE_SHIFT); |
237 | 237 | ||
238 | if (do_munmap(mm, old_addr, old_len) < 0) { | 238 | if (do_munmap(mm, old_addr, old_len) < 0) { |
239 | /* OOM: unable to split vma, just get accounts right */ | 239 | /* OOM: unable to split vma, just get accounts right */ |
@@ -384,7 +384,7 @@ unsigned long do_mremap(unsigned long addr, | |||
384 | addr + new_len, vma->vm_pgoff, NULL); | 384 | addr + new_len, vma->vm_pgoff, NULL); |
385 | 385 | ||
386 | current->mm->total_vm += pages; | 386 | current->mm->total_vm += pages; |
387 | __vm_stat_account(vma->vm_mm, vma->vm_flags, | 387 | vm_stat_account(vma->vm_mm, vma->vm_flags, |
388 | vma->vm_file, pages); | 388 | vma->vm_file, pages); |
389 | if (vma->vm_flags & VM_LOCKED) { | 389 | if (vma->vm_flags & VM_LOCKED) { |
390 | current->mm->locked_vm += pages; | 390 | current->mm->locked_vm += pages; |