aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2014-04-07 15:37:45 -0700
committerLinus Torvalds <[email protected]>2014-04-07 16:35:57 -0700
commit6d1fdc48938cd51a3964778d78f27cb26c8eb55d (patch)
treed91eba708cf20e7cda0913bb3489df0ae31f5315 /tools/perf/scripts/python
parentb6b6cc72bc404c952968530d7df4c3a4ab82b65b (diff)
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(). [[email protected]: add charge mm helper] Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions