]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: s/add_hierarchy()/cgroup_hierarchy_add()/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 21 Feb 2021 00:09:33 +0000 (01:09 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 21 Feb 2021 00:09:33 +0000 (01:09 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 1e55d71d1edcd9d047c79e6ec79015648b00ebf6..8bb9272519fab0e2f5d3a8f5de7677d9ecf16730 100644 (file)
@@ -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;
@@ -3199,7 +3199,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);