From: Kirill A. Shutemov Date: Wed, 16 Dec 2009 00:47:01 +0000 (-0800) Subject: memcg: fix memory.memsw.usage_in_bytes for root cgroup X-Git-Tag: v2.6.33-rc1~71^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd9b45b78a61e8df250e69385c74e729e5b66abf;p=pandora-kernel.git memcg: fix memory.memsw.usage_in_bytes for root cgroup A memory cgroup has a memory.memsw.usage_in_bytes file. It shows the sum of the usage of pages and swapents in the cgroup. Presently the root cgroup's memsw.usage_in_bytes shows the wrong value - the number of swapents are not added. So take MEM_CGROUP_STAT_SWAPOUT into account. Signed-off-by: Kirill A. Shutemov Reviewed-by: Daisuke Nishimura Acked-by: KAMEZAWA Hiroyuki Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed