[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>
This commit is contained in:
committed by
Linus Torvalds
parent
72866f6f27
commit
ab50b8ed81
+1
-1
@@ -212,7 +212,7 @@ static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm)
|
||||
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,
|
||||
vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file,
|
||||
-pages);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user