summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2009-01-08 03:07:53 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-08 17:31:04 +0100
commitc8dad2bb6307f5b00f804a686917105206a4d5c9 (patch)
tree5f1b7dd1fc4ae5789e35e5d0dade0d37be9fe52e /fs
parentmemcg: move all acccounting to parent at rmdir() (diff)
downloadlinux-c8dad2bb6307f5b00f804a686917105206a4d5c9.tar.xz
linux-c8dad2bb6307f5b00f804a686917105206a4d5c9.zip
memcg: reduce size of mem_cgroup by using nr_cpu_ids
As Jan Blunck <jblunck@suse.de> pointed out, allocating per-cpu stat for memcg to the size of NR_CPUS is not good. This patch changes mem_cgroup's cpustat allocation not based on NR_CPUS but based on nr_cpu_ids. Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions