From: Christian Brauner Date: Wed, 24 Feb 2021 10:31:02 +0000 (+0100) Subject: cgroups: s/cgroup_layout/layout/g X-Git-Tag: lxc-5.0.0~269^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61983e15d2842997142c0df9b5eef80796686c94;p=thirdparty%2Flxc.git cgroups: s/cgroup_layout/layout/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 335e5b074..816c9fe9d 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -3406,7 +3406,7 @@ static int __cgroup_attach_many(const struct lxc_conf *conf, const char *name, if (idx == 0) return syserrno_set(-ENOENT, "Failed to attach to cgroups"); - TRACE("Attached to %s cgroup layout", cgroup_layout_name(ctx->cgroup_layout)); + TRACE("Attached to %s cgroup layout", cgroup_layout_name(ctx->layout)); return 0; } diff --git a/src/lxc/cgroups/cgroup.h b/src/lxc/cgroups/cgroup.h index fb28648cc..ca320d969 100644 --- a/src/lxc/cgroups/cgroup.h +++ b/src/lxc/cgroups/cgroup.h @@ -64,7 +64,7 @@ typedef enum { // BUILD_BUG_ON(CGROUP_CTX_MAX_FD > KERNEL_SCM_MAX_FD); struct cgroup_ctx { - __s32 cgroup_layout; + __s32 layout; __u32 utilities; __u32 fd_len; __s32 fd[CGROUP_CTX_MAX_FD]; @@ -311,7 +311,7 @@ static inline int prepare_cgroup_ctx(struct cgroup_ops *ops, return ret_errno(ENOENT); ctx->fd_len = idx; - ctx->cgroup_layout = ops->cgroup_layout; + ctx->layout = ops->cgroup_layout; if (ops->unified && ops->unified->dfd_con > 0) ctx->utilities = ops->unified->utilities;