From: Jan Blunck Date: Thu, 8 Jan 2009 02:07:53 +0000 (-0800) Subject: memcg: reduce size of mem_cgroup by using nr_cpu_ids X-Git-Tag: v2.6.29-rc1~135 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8dad2bb6307f5b00f804a686917105206a4d5c9;p=pandora-kernel.git memcg: reduce size of mem_cgroup by using nr_cpu_ids As Jan Blunck 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 Signed-off-by: KAMEZAWA Hiroyuki Cc: Li Zefan Cc: Balbir Singh Cc: Pavel Emelyanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed