|
@@ -3170,7 +3170,7 @@ int cgroup_rm_cftypes(struct cftype *cfts)
|
|
|
* function currently returns 0 as long as @cfts registration is successful
|
|
|
* even if some file creation attempts on existing cgroups fail.
|
|
|
*/
|
|
|
-int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)
|
|
|
+static int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)
|
|
|
{
|
|
|
int ret;
|
|
|
|
|
@@ -3195,6 +3195,11 @@ int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+int cgroup_add_legacy_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)
|
|
|
+{
|
|
|
+ return cgroup_add_cftypes(ss, cfts);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* cgroup_task_count - count the number of tasks in a cgroup.
|
|
|
* @cgrp: the cgroup in question
|