diff options
author | Tejun Heo <tj@kernel.org> | 2016-03-03 15:58:01 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-03-03 15:58:01 +0100 |
commit | 5ced2518bd3e3a4f01e2122122211f217cd99f4f (patch) | |
tree | fefeccfceacfb805672d3007db8e3e76e51ca744 /kernel/capability.c | |
parent | cgroup: reimplement rebind_subsystems() using cgroup_apply_control() and friends (diff) | |
download | linux-5ced2518bd3e3a4f01e2122122211f217cd99f4f.tar.xz linux-5ced2518bd3e3a4f01e2122122211f217cd99f4f.zip |
cgroup: make cgroup_calc_subtree_ss_mask() take @this_ss_mask
cgroup_calc_subtree_ss_mask() currently takes @cgrp and
@subtree_control. @cgrp is used for two purposes - to decide whether
it's for default hierarchy and the mask of available subsystems. The
former doesn't matter as the results are the same regardless. The
latter can be specified directly through a subsystem mask.
This patch makes cgroup_calc_subtree_ss_mask() perform the same
calculations for both default and legacy hierarchies and take
@this_ss_mask for available subsystems. @cgrp is no longer used and
dropped. This is to allow using the function in contexts where
available controllers can't be decided from the cgroup.
v2: cgroup_refres_subtree_ss_mask() is removed by a previous patch.
Updated accordingly.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'kernel/capability.c')
0 files changed, 0 insertions, 0 deletions