From: KAMEZAWA Hiroyuki Date: Tue, 25 Jan 2011 23:07:27 +0000 (-0800) Subject: memcg: fix account leak at failure of memsw acconting X-Git-Tag: v2.6.38-rc3~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c88e2d6b7330c0cc5867fe2297e7d826e1337d;p=pandora-kernel.git memcg: fix account leak at failure of memsw acconting Commit 4b53433468 ("memcg: clean up try_charge main loop") removes a cancel of charge at case: memory charge-> success. mem+swap charge-> failure. This leaks usage of memory. Fix it. Signed-off-by: KAMEZAWA Hiroyuki Reviewed-by: Johannes Weiner Acked-by: Daisuke Nishimura Cc: Balbir Singh Cc: [2.6.36+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed