aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2012-05-29 18:07:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-29 19:22:28 -0400
commitfad02c2de0623fc6d4ff12ca72b60ea521118681 (patch)
treec94040481a13fae1215176356606e7f322affdad /mm
parent13114716c744afe165c2148c944ed0306658921c (diff)
mm: memcg: group swapped-out statistics counter logically
The counter of currently swapped out pages in a memcg (hierarchy) is sitting amidst ever-increasing event counters. Move this item to the other counters that reflect current state rather than history. This technically breaks the kernel ABI, but hopefully nobody relies on the order of items in memory.stat. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Ying Han <yinghan@google.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index b7b230606f2c..1118e02a40b6 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4043,9 +4043,9 @@ enum {
4043 MCS_CACHE, 4043 MCS_CACHE,
4044 MCS_RSS, 4044 MCS_RSS,
4045 MCS_FILE_MAPPED, 4045 MCS_FILE_MAPPED,
4046 MCS_SWAP,
4046 MCS_PGPGIN, 4047 MCS_PGPGIN,
4047 MCS_PGPGOUT, 4048 MCS_PGPGOUT,
4048 MCS_SWAP,
4049 MCS_PGFAULT, 4049 MCS_PGFAULT,
4050 MCS_PGMAJFAULT, 4050 MCS_PGMAJFAULT,
4051 MCS_INACTIVE_ANON, 4051 MCS_INACTIVE_ANON,
@@ -4064,9 +4064,9 @@ static const char *memcg_stat_strings[NR_MCS_STAT] = {
4064 "cache", 4064 "cache",
4065 "rss", 4065 "rss",
4066 "mapped_file", 4066 "mapped_file",
4067 "swap",
4067 "pgpgin", 4068 "pgpgin",
4068 "pgpgout", 4069 "pgpgout",
4069 "swap",
4070 "pgfault", 4070 "pgfault",
4071 "pgmajfault", 4071 "pgmajfault",
4072 "inactive_anon", 4072 "inactive_anon",