diff options
author | Li Zefan <lizefan@huawei.com> | 2013-09-23 12:55:43 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-09-24 05:44:14 +0400 |
commit | b47f77b5a2243768d5cb1f143ce5e6c28baa271a (patch) | |
tree | 8b00b223ec4a4de4c485fc4f88b721196bd36fad /mm/memcontrol.c | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
download | linux-b47f77b5a2243768d5cb1f143ce5e6c28baa271a.tar.xz |
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.c | 2 |
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, |