cgroup: separate out cgroup_calc_child_subsys_mask() from cgroup_refresh_child_subsys...
authorTejun Heo <tj@kernel.org>
Tue, 18 Nov 2014 07:49:50 +0000 (02:49 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 18 Nov 2014 07:49:50 +0000 (02:49 -0500)
commit0f060deb5c5107486c5dadd5c715b3693d381e0a
tree6e026e7b68546545bda4ca1d2cf89525e6b1c14a
parentcea74465e27b1306a237087fca2f5f0befcf1daf
cgroup: separate out cgroup_calc_child_subsys_mask() from cgroup_refresh_child_subsys_mask()

cgroup_refresh_child_subsys_mask() calculates and updates the
effective @cgrp->child_subsys_maks according to the current
@cgrp->subtree_control.  Separate out the calculation part into
cgroup_calc_child_subsys_mask().  This will be used to fix a bug in
the async css offline wait logic.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
kernel/cgroup.c