Skip to content

Commit

Permalink
cgroups: s/add_hierarchy()/cgroup_hierarchy_add()/g
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent 4af19a0 commit 588b1d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lxc/cgroups/cgfsng.c
Expand Up @@ -387,9 +387,9 @@ static bool skip_hierarchy(const struct cgroup_ops *ops, char **controllers)
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;
Expand Down Expand Up @@ -3197,7 +3197,8 @@ static int __initialize_cgroups(struct cgroup_ops *ops, bool relative,
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);

Expand Down

0 comments on commit 588b1d3

Please sign in to comment.