summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-09-23 16:55:43 +0800
committerTejun Heo <tj@kernel.org>2013-09-23 21:44:14 -0400
commitb47f77b5a2243768d5cb1f143ce5e6c28baa271a (patch)
tree8b00b223ec4a4de4c485fc4f88b721196bd36fad /mm/memcontrol.c
parent272b98c6455f00884f0350f775c5342358ebb73f (diff)
downloadtalos-op-linux-b47f77b5a2243768d5cb1f143ce5e6c28baa271a.tar.gz
talos-op-linux-b47f77b5a2243768d5cb1f143ce5e6c28baa271a.zip
memcg: convert to use cgroup_is_descendant()
This is a preparation to kill css_id. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
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,
OpenPOWER on IntegriCloud