Re: [PATCH] mm/memcg: remove redundant checking on root memcg

2012-07-17 Thread Michal Hocko
On Tue 17-07-12 17:42:27, Wanpeng Li wrote: > Function __mem_cgroup_cancel_local_charge is only called by > mem_cgroup_move_parent. For this case, root memcg has been > checked by mem_cgroup_move_parent. So we needn't check that > again in function __mem_cgroup_cancel_local_charge and just > remove

[PATCH] mm/memcg: remove redundant checking on root memcg

2012-07-17 Thread Wanpeng Li
Function __mem_cgroup_cancel_local_charge is only called by mem_cgroup_move_parent. For this case, root memcg has been checked by mem_cgroup_move_parent. So we needn't check that again in function __mem_cgroup_cancel_local_charge and just remove the check in function __mem_cgroup_cancel_local_charg