Re: [patch v2 5/6] memcg: further simplify mem_cgroup_iter
From: Kamezawa Hiroyuki <hidden>
Date: 2012-11-30 04:10:55
Also in:
lkml
From: Kamezawa Hiroyuki <hidden>
Date: 2012-11-30 04:10:55
Also in:
lkml
(2012/11/27 3:47), Michal Hocko wrote:
mem_cgroup_iter basically does two things currently. It takes care of the house keeping (reference counting, raclaim cookie) and it iterates through a hierarchy tree (by using cgroup generic tree walk). The code would be much more easier to follow if we move the iteration outside of the function (to __mem_cgrou_iter_next) so the distinction is more clear. This patch doesn't introduce any functional changes. Signed-off-by: Michal Hocko <redacted>
Very nice look ! Acked-by: KAMEZAWA Hiroyuki <redacted> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>