From: KAMEZAWA Hiroyuki Date: Sun, 19 Oct 2008 03:28:10 +0000 (-0700) Subject: memcg: optimize per-cpu statistics X-Git-Tag: v2.6.28-rc1~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=addb9efebb2ee2202d324e75b593b39868528f68;p=pandora-kernel.git memcg: optimize per-cpu statistics Some obvious optimization to memcg. I found mem_cgroup_charge_statistics() is a little big (in object) and does unnecessary address calclation. This patch is for optimization to reduce the size of this function. And res_counter_charge() is 'likely' to succeed. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Balbir Singh Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed