diff options
author | Tejun Heo <tj@kernel.org> | 2016-03-03 09:57:59 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-03-03 09:57:59 -0500 |
commit | bdb53bd797dcef46d1a252b9529f8fd511bf714c (patch) | |
tree | 28d344a6ebeecc252596933257412a92f3ab1626 /kernel/Kconfig.hz | |
parent | 12b3bb6af862477f96e1adac51b201a143a8f3c4 (diff) | |
download | linux-bdb53bd797dcef46d1a252b9529f8fd511bf714c.tar.bz2 |
cgroup: factor out cgroup_apply_control_enable() from cgroup_subtree_control_write()
Factor out css enabling and showing into cgroup_apply_control_enable().
* Nest subsystem walk inside child walk. The child walk will later be
converted to subtree walk which is a bit more expensive.
* Instead of operating on the differential masks @css_enable, simply
enable or show csses according to the current cgroup_control() and
cgroup_ss_mask(). This leads to the same result and is simpler and
more robust.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'kernel/Kconfig.hz')
0 files changed, 0 insertions, 0 deletions