mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 02:20:52 +07:00
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>
This commit is contained in:
parent
272b98c645
commit
b47f77b5a2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user