From: KAMEZAWA Hiroyuki Date: Thu, 1 Oct 2009 22:44:12 +0000 (-0700) Subject: memcg: reduce check for softlimit excess X-Git-Tag: v2.6.32-rc3~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8745c1e7fc5413d760b3b958f3fd3a0beaad72;p=pandora-kernel.git memcg: reduce check for softlimit excess In charge/uncharge/reclaim path, usage_in_excess is calculated repeatedly and it takes res_counter's spin_lock every time. This patch removes unnecessary calls for res_count_soft_limit_excess. Reviewed-by: Daisuke Nishimura Signed-off-by: KAMEZAWA Hiroyuki Cc: Paul Menage Cc: Li Zefan Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed