diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2014-04-08 02:37:45 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 03:35:57 +0400 |
commit | 6d1fdc48938cd51a3964778d78f27cb26c8eb55d (patch) | |
tree | d91eba708cf20e7cda0913bb3489df0ae31f5315 /Documentation | |
parent | b6b6cc72bc404c952968530d7df4c3a4ab82b65b (diff) | |
download | linux-6d1fdc48938cd51a3964778d78f27cb26c8eb55d.tar.xz |
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 <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions