diff options
author | Johannes Weiner <[email protected]> | 2014-12-10 15:44:08 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-10 17:41:07 -0800 |
commit | 4e2f245d38ba86e3922c6c188fe4a0d0688aed88 (patch) | |
tree | 8d4f91042e2ede102bd94236543f5cd5a97a5592 /tools/perf/scripts/python/sched-migration.py | |
parent | 354a4783a2ee5ba1cb5a1442cca8ecd4c0ac6d66 (diff) |
mm: memcontrol: don't pass a NULL memcg to mem_cgroup_end_move()
mem_cgroup_end_move() checks if the passed memcg is NULL, along with a
lengthy comment to explain why this seemingly non-sensical situation is
even possible.
Check in cancel_attach() itself whether can_attach() set up the move
context or not, it's a lot more obvious from there. Then remove the check
and comment in mem_cgroup_end_move().
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Vladimir Davydov <[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/sched-migration.py')
0 files changed, 0 insertions, 0 deletions