return false;
}
-static int add_hierarchy(struct cgroup_ops *ops, int dfd_mnt, char *mnt,
- int dfd_base, char *base_cgroup, char **controllers,
- int type)
+static int cgroup_hierarchy_add(struct cgroup_ops *ops, int dfd_mnt, char *mnt,
+ int dfd_base, char *base_cgroup,
+ char **controllers, int type)
{
__do_free struct hierarchy *new = NULL;
int idx;
ops->cgroup_layout = CGROUP_LAYOUT_LEGACY;
}
- ret = add_hierarchy(ops, dfd_mnt, controllers, dfd, current_cgroup, controller_list, type);
+ ret = cgroup_hierarchy_add(ops, dfd_mnt, controllers, dfd,
+ current_cgroup, controller_list, type);
if (ret < 0)
return syserrno(ret, "Failed to add %s hierarchy", controllers);