]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: clean up fault accounting
authorJohannes Weiner <jweiner@redhat.com>
Fri, 2 Dec 2011 03:13:05 +0000 (14:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 04:05:48 +0000 (15:05 +1100)
commit7e9c68ae02ce7138e6317e7dde4406d22d64282f
tree92d32f27d1c4ca4d58982ac97d00b8b9991c84cd
parent0d3f1cdae344b812c40005449b8330d10b59be0a
mm: memcg: clean up fault accounting

The fault accounting functions have a single, memcg-internal user, so they
don't need to be global.  In fact, their one-line bodies can be directly
folded into the caller.  And since faults happen one at a time, use
this_cpu_inc() directly instead of this_cpu_add(foo, 1).

Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c