summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorKirill A. Shutemov2009-12-16 01:47:01 +0100
committerLinus Torvalds2009-12-16 16:20:07 +0100
commitcd9b45b78a61e8df250e69385c74e729e5b66abf (patch)
tree8cb92363dd4b936814de9a0823016889b3441fde /kernel/fork.c
parentseq_file: use proc_create() in documentation (diff)
downloadkernel-qcow2-linux-cd9b45b78a61e8df250e69385c74e729e5b66abf.tar.gz
kernel-qcow2-linux-cd9b45b78a61e8df250e69385c74e729e5b66abf.tar.xz
kernel-qcow2-linux-cd9b45b78a61e8df250e69385c74e729e5b66abf.zip
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 <kirill@shutemov.name> Reviewed-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions