From: Johannes Weiner Date: Mon, 7 Apr 2014 22:37:45 +0000 (-0700) Subject: memcg: sanitize __mem_cgroup_try_charge() call protocol X-Git-Tag: v3.15-rc1~57^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1fdc48938cd51a3964778d78f27cb26c8eb55d;p=pandora-kernel.git memcg: sanitize __mem_cgroup_try_charge() call protocol Some callsites pass a memcg directly, some callsites pass an mm that then has to be translated to a memcg. This makes for a terrible function interface. Just push the mm-to-memcg translation into the respective callsites and always pass a memcg to mem_cgroup_try_charge(). [mhocko@suse.cz: add charge mm helper] Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed