aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <[email protected]>2008-02-07 00:14:24 -0800
committerLinus Torvalds <[email protected]>2008-02-07 08:42:20 -0800
commitd52aa412d43827033a8e2ce4415ef6e8f8d53635 (patch)
tree24d446d16a2acf33c612ebf8856529607632bf37 /include/linux
parent3564c7c45156b358efe921ab2e4e516dad92c94c (diff)
memory cgroup enhancements: add status accounting function for memory cgroup
Add statistics account infrastructure for memory controller. All account information is stored per-cpu and caller will not have to take lock or use atomic ops. This will be used by memory.stat file later. CACHE includes swapcache now. I'd like to divide it to PAGECACHE and SWAPCACHE later. This patch adds 3 functions for accounting. * __mem_cgroup_stat_add() ... for usual routine. * __mem_cgroup_stat_add_safe ... for calling under irq_disabled section. * mem_cgroup_read_stat() ... for reading stat value. * renamed PAGECACHE to CACHE (because it may include swapcache *now*) [[email protected]: coding-style fixes] [[email protected]: fix smp_processor_id-in-preemptible] [[email protected]: uninline things] [[email protected]: remove dead code] Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Signed-off-by: YAMAMOTO Takashi <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Pavel Emelianov <[email protected]> Cc: Paul Menage <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Kirill Korotaev <[email protected]> Cc: Herbert Poetzl <[email protected]> Cc: David Rientjes <[email protected]> Cc: Vaidyanathan Srinivasan <[email protected]> Cc: Kirill Korotaev <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Paul Menage <[email protected]> Cc: Pavel Emelianov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Vaidyanathan Srinivasan <[email protected]> Cc: YAMAMOTO Takashi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions