diff options
| author | 2014-12-10 15:44:08 -0800 | |
|---|---|---|
| committer | 2014-12-10 17:41:07 -0800 | |
| commit | 4e2f245d38ba86e3922c6c188fe4a0d0688aed88 (patch) | |
| tree | 8d4f91042e2ede102bd94236543f5cd5a97a5592 /include | |
| parent | mm: memcontrol: inline memcg->move_lock locking (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 <hannes@cmpxchg.org>
Acked-by: Vladimir Davydov <vdavydov@parallels.com>
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 'include')
0 files changed, 0 insertions, 0 deletions
