From: Daisuke Nishimura Date: Wed, 16 Dec 2009 00:47:10 +0000 (-0800) Subject: memcg: add mem_cgroup_cancel_charge() X-Git-Tag: v2.6.33-rc1~71^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3032a2c15c6967f9f0c0c28375b1a5c833a3112;p=pandora-kernel.git memcg: add mem_cgroup_cancel_charge() There are some places calling both res_counter_uncharge() and css_put() to cancel the charge and the refcnt we have got by mem_cgroup_tyr_charge(). This patch introduces mem_cgroup_cancel_charge() and call it in those places. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Daisuke Nishimura Reviewed-by: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed