Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information