]> git.baikalelectronics.ru Git - kernel.git/commit
mm: account the total_vm in the vm_stat_account()
authorHuang Shijie <shijie8@gmail.com>
Tue, 31 Jul 2012 23:41:49 +0000 (16:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Aug 2012 01:42:39 +0000 (18:42 -0700)
commitb87dd5fc9499bb0f9ecb5572b3a5a4e2757c20d8
treea9ce576f28e5038e9e3ae2e360cadf176dc74898
parent544cd8767d544833cc2248ad3cc0e78f301af6dc
mm: account the total_vm in the vm_stat_account()

vm_stat_account() accounts the shared_vm, stack_vm and reserved_vm now.
But we can also account for total_vm in the vm_stat_account() which makes
the code tidy.

Even for mprotect_fixup(), we can get the right result in the end.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/kernel/perfmon.c
include/linux/mm.h
kernel/fork.c
mm/mmap.c
mm/mremap.c