From: KAMEZAWA Hiroyuki Date: Wed, 27 Oct 2010 22:33:42 +0000 (-0700) Subject: memcg: cpu hotplug aware quick acount_move detection X-Git-Tag: v2.6.37-rc1~85^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1489ebad8b5b20300562f634f279cb9c435fd90b;p=pandora-kernel.git memcg: cpu hotplug aware quick acount_move detection An event counter MEM_CGROUP_ON_MOVE is used for quick check whether file stat update can be done in async manner or not. Now, it use percpu counter and for_each_possible_cpu to update. This patch replaces for_each_possible_cpu to for_each_online_cpu and adds necessary synchronization logic at CPU HOTPLUG. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed