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 | 12b3bb6af862477f96e1adac51b201a143a8f3c4 (patch) | |
tree | 8be60418534f5acce21fdc203112879ff187624a /net/rose | |
parent | 1b9b96a12b5433ccc477265111122720ccb4965e (diff) | |
download | linux-12b3bb6af862477f96e1adac51b201a143a8f3c4.tar.gz linux-12b3bb6af862477f96e1adac51b201a143a8f3c4.tar.bz2 linux-12b3bb6af862477f96e1adac51b201a143a8f3c4.zip |
cgroup: factor out cgroup_apply_control_disable() from cgroup_subtree_control_write()
Factor out css disabling and hiding into cgroup_apply_control_disable().
* 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 and
@css_disable, simply disable or hide csses according to the current
cgroup_control() and cgroup_ss_mask(). This leads to the same
result and is simpler and more robust.
* This allows error handling path to share the same code.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'net/rose')
0 files changed, 0 insertions, 0 deletions