From: Li Zefan Date: Mon, 23 Sep 2013 08:55:43 +0000 (+0800) Subject: memcg: convert to use cgroup_is_descendant() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b47f77b5a2243768d5cb1f143ce5e6c28baa271a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git memcg: convert to use cgroup_is_descendant() This is a preparation to kill css_id. Signed-off-by: Li Zefan Acked-by: Michal Hocko Signed-off-by: Tejun Heo --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d5ff3ce13029..aa8363ef381c 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1318,7 +1318,7 @@ bool __mem_cgroup_same_or_subtree(const struct mem_cgroup *root_memcg, return true; if (!root_memcg->use_hierarchy || !memcg) return false; - return css_is_ancestor(&memcg->css, &root_memcg->css); + return cgroup_is_descendant(memcg->css.cgroup, root_memcg->css.cgroup); } static bool mem_cgroup_same_or_subtree(const struct mem_cgroup *root_memcg,