cgroups: s/cgroup_layout/layout/g

parent c206ac24
...@@ -3406,7 +3406,7 @@ static int __cgroup_attach_many(const struct lxc_conf *conf, const char *name, ...@@ -3406,7 +3406,7 @@ static int __cgroup_attach_many(const struct lxc_conf *conf, const char *name,
if (idx == 0) if (idx == 0)
return syserrno_set(-ENOENT, "Failed to attach to cgroups"); 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; return 0;
} }
......
...@@ -64,7 +64,7 @@ typedef enum { ...@@ -64,7 +64,7 @@ typedef enum {
// BUILD_BUG_ON(CGROUP_CTX_MAX_FD > KERNEL_SCM_MAX_FD); // BUILD_BUG_ON(CGROUP_CTX_MAX_FD > KERNEL_SCM_MAX_FD);
struct cgroup_ctx { struct cgroup_ctx {
__s32 cgroup_layout; __s32 layout;
__u32 utilities; __u32 utilities;
__u32 fd_len; __u32 fd_len;
__s32 fd[CGROUP_CTX_MAX_FD]; __s32 fd[CGROUP_CTX_MAX_FD];
...@@ -311,7 +311,7 @@ static inline int prepare_cgroup_ctx(struct cgroup_ops *ops, ...@@ -311,7 +311,7 @@ static inline int prepare_cgroup_ctx(struct cgroup_ops *ops,
return ret_errno(ENOENT); return ret_errno(ENOENT);
ctx->fd_len = idx; ctx->fd_len = idx;
ctx->cgroup_layout = ops->cgroup_layout; ctx->layout = ops->cgroup_layout;
if (ops->unified && ops->unified->dfd_con > 0) if (ops->unified && ops->unified->dfd_con > 0)
ctx->utilities = ops->unified->utilities; ctx->utilities = ops->unified->utilities;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment