diff options
| -rw-r--r-- | kernel/cgroup/cgroup.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 0dcc4c7e935e..a99b15f9b577 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c | |||
| @@ -159,7 +159,7 @@ static bool cgrp_dfl_visible; | |||
| 159 | static u16 cgrp_dfl_inhibit_ss_mask; | 159 | static u16 cgrp_dfl_inhibit_ss_mask; |
| 160 | 160 | ||
| 161 | /* some controllers are implicitly enabled on the default hierarchy */ | 161 | /* some controllers are implicitly enabled on the default hierarchy */ |
| 162 | static unsigned long cgrp_dfl_implicit_ss_mask; | 162 | static u16 cgrp_dfl_implicit_ss_mask; |
| 163 | 163 | ||
| 164 | /* The list of hierarchy roots */ | 164 | /* The list of hierarchy roots */ |
| 165 | LIST_HEAD(cgroup_roots); | 165 | LIST_HEAD(cgroup_roots); |
| @@ -178,13 +178,13 @@ static DEFINE_IDR(cgroup_hierarchy_idr); | |||
| 178 | static u64 css_serial_nr_next = 1; | 178 | static u64 css_serial_nr_next = 1; |
| 179 | 179 | ||
| 180 | /* | 180 | /* |
| 181 | * These bitmask flags indicate whether tasks in the fork and exit paths have | 181 | * These bitmasks identify subsystems with specific features to avoid |
| 182 | * fork/exit handlers to call. This avoids us having to do extra work in the | 182 | * having to do iterative checks repeatedly. |
| 183 | * fork/exit path to check which subsystems have fork/exit callbacks. | ||
| 184 | */ | 183 | */ |
| 185 | static u16 have_fork_callback __read_mostly; | 184 | static u16 have_fork_callback __read_mostly; |
| 186 | static u16 have_exit_callback __read_mostly; | 185 | static u16 have_exit_callback __read_mostly; |
| 187 | static u16 have_free_callback __read_mostly; | 186 | static u16 have_free_callback __read_mostly; |
| 187 | static u16 have_canfork_callback __read_mostly; | ||
| 188 | 188 | ||
| 189 | /* cgroup namespace for init task */ | 189 | /* cgroup namespace for init task */ |
| 190 | struct cgroup_namespace init_cgroup_ns = { | 190 | struct cgroup_namespace init_cgroup_ns = { |
| @@ -195,9 +195,6 @@ struct cgroup_namespace init_cgroup_ns = { | |||
| 195 | .root_cset = &init_css_set, | 195 | .root_cset = &init_css_set, |
| 196 | }; | 196 | }; |
| 197 | 197 | ||
| 198 | /* Ditto for the can_fork callback. */ | ||
| 199 | static u16 have_canfork_callback __read_mostly; | ||
| 200 | |||
| 201 | static struct file_system_type cgroup2_fs_type; | 198 | static struct file_system_type cgroup2_fs_type; |
| 202 | static struct cftype cgroup_base_files[]; | 199 | static struct cftype cgroup_base_files[]; |
| 203 | 200 | ||
