|
@@ -173,12 +173,6 @@ EXPORT_SYMBOL_GPL(cgrp_dfl_root);
|
|
|
*/
|
|
|
static bool cgrp_dfl_root_visible;
|
|
|
|
|
|
-/*
|
|
|
- * Set by the boot param of the same name and makes subsystems with NULL
|
|
|
- * ->dfl_files to use ->legacy_files on the default hierarchy.
|
|
|
- */
|
|
|
-static bool cgroup_legacy_files_on_dfl;
|
|
|
-
|
|
|
/* some controllers are not supported in the default hierarchy */
|
|
|
static unsigned long cgrp_dfl_root_inhibit_ss_mask;
|
|
|
|
|
@@ -3553,17 +3547,8 @@ int cgroup_add_legacy_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)
|
|
|
{
|
|
|
struct cftype *cft;
|
|
|
|
|
|
- /*
|
|
|
- * If legacy_flies_on_dfl, we want to show the legacy files on the
|
|
|
- * dfl hierarchy but iff the target subsystem hasn't been updated
|
|
|
- * for the dfl hierarchy yet.
|
|
|
- */
|
|
|
- if (!cgroup_legacy_files_on_dfl ||
|
|
|
- ss->dfl_cftypes != ss->legacy_cftypes) {
|
|
|
- for (cft = cfts; cft && cft->name[0] != '\0'; cft++)
|
|
|
- cft->flags |= __CFTYPE_NOT_ON_DFL;
|
|
|
- }
|
|
|
-
|
|
|
+ for (cft = cfts; cft && cft->name[0] != '\0'; cft++)
|
|
|
+ cft->flags |= __CFTYPE_NOT_ON_DFL;
|
|
|
return cgroup_add_cftypes(ss, cfts);
|
|
|
}
|
|
|
|
|
@@ -5287,9 +5272,6 @@ int __init cgroup_init(void)
|
|
|
|
|
|
cgrp_dfl_root.subsys_mask |= 1 << ss->id;
|
|
|
|
|
|
- if (cgroup_legacy_files_on_dfl && !ss->dfl_cftypes)
|
|
|
- ss->dfl_cftypes = ss->legacy_cftypes;
|
|
|
-
|
|
|
if (!ss->dfl_cftypes)
|
|
|
cgrp_dfl_root_inhibit_ss_mask |= 1 << ss->id;
|
|
|
|
|
@@ -5729,14 +5711,6 @@ static int __init cgroup_disable(char *str)
|
|
|
}
|
|
|
__setup("cgroup_disable=", cgroup_disable);
|
|
|
|
|
|
-static int __init cgroup_set_legacy_files_on_dfl(char *str)
|
|
|
-{
|
|
|
- printk("cgroup: using legacy files on the default hierarchy\n");
|
|
|
- cgroup_legacy_files_on_dfl = true;
|
|
|
- return 0;
|
|
|
-}
|
|
|
-__setup("cgroup__DEVEL__legacy_files_on_dfl", cgroup_set_legacy_files_on_dfl);
|
|
|
-
|
|
|
/**
|
|
|
* css_tryget_online_from_dir - get corresponding css from a cgroup dentry
|
|
|
* @dentry: directory dentry of interest
|