]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcg: print statistics directly to seq_file
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 29 May 2012 22:07:06 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:27 +0000 (16:22 -0700)
commit04f14b9530262cba562a6b11e6a4621422b8506f
tree999ce4d31c0b98d6bb437a9cb001ad6d938a6489
parent8fac5fdbb54fe58113ae75651d5dc926f7105fa9
mm: memcg: print statistics directly to seq_file

Being able to use seq_printf() allows being smarter about statistics
name strings, which are currently listed twice, with the only difference
being a "total_" prefix on the hierarchical version.

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>
mm/memcontrol.c