cgroup: short-circuit cset_cgroup_from_root() on the default hierarchy
authorTejun Heo <tj@kernel.org>
Wed, 2 Aug 2017 22:39:38 +0000 (15:39 -0700)
committerTejun Heo <tj@kernel.org>
Wed, 2 Aug 2017 22:39:38 +0000 (15:39 -0700)
commit13d82fb77abb9625f3ca74f5c4cbedde0f412f01
tree70307b2105a576f8aaee0bf48344bc61e404dbf7
parent5a621e6c958e057c727a30c502f28bf2bc04adfd
cgroup: short-circuit cset_cgroup_from_root() on the default hierarchy

Each css_set directly points to the default cgroup it belongs to, so
there's no reason to walk the cgrp_links list on the default
hierarchy.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c