diff options
| -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, |
