diff options
author | Li Zefan <lizefan@huawei.com> | 2013-09-23 04:55:43 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-09-23 21:44:14 -0400 |
commit | b47f77b5a2243768d5cb1f143ce5e6c28baa271a (patch) | |
tree | 8b00b223ec4a4de4c485fc4f88b721196bd36fad /mm/memcontrol.c | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) |
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, | |||
1318 | return true; | 1318 | return true; |
1319 | if (!root_memcg->use_hierarchy || !memcg) | 1319 | if (!root_memcg->use_hierarchy || !memcg) |
1320 | return false; | 1320 | return false; |
1321 | return css_is_ancestor(&memcg->css, &root_memcg->css); | 1321 | return cgroup_is_descendant(memcg->css.cgroup, root_memcg->css.cgroup); |
1322 | } | 1322 | } |
1323 | 1323 | ||
1324 | static bool mem_cgroup_same_or_subtree(const struct mem_cgroup *root_memcg, | 1324 | static bool mem_cgroup_same_or_subtree(const struct mem_cgroup *root_memcg, |