summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup/cgroup-internal.h
diff options
context:
space:
mode:
authorAl Viro2019-01-17 08:25:51 +0100
committerAl Viro2019-02-28 09:29:32 +0100
commitcf6299b1d00555cd10dc30d95b300d7084128a2c (patch)
treef4cd581ee037732a736b70e1fffa220e012be512 /kernel/cgroup/cgroup-internal.h
parentcgroup2: switch to option-by-option parsing (diff)
downloadkernel-qcow2-linux-cf6299b1d00555cd10dc30d95b300d7084128a2c.tar.gz
kernel-qcow2-linux-cf6299b1d00555cd10dc30d95b300d7084128a2c.tar.xz
kernel-qcow2-linux-cf6299b1d00555cd10dc30d95b300d7084128a2c.zip
cgroup: stash cgroup_root reference into cgroup_fs_context
Note that this reference is *NOT* contributing to refcount of cgroup_root in question and is valid only until cgroup_do_mount() returns. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/cgroup/cgroup-internal.h')
-rw-r--r--kernel/cgroup/cgroup-internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup-internal.h b/kernel/cgroup/cgroup-internal.h
index a7b5a41f170c..3c1613a7648c 100644
--- a/kernel/cgroup/cgroup-internal.h
+++ b/kernel/cgroup/cgroup-internal.h
@@ -41,6 +41,7 @@ extern void __init enable_debug_cgroup(void);
* The cgroup filesystem superblock creation/mount context.
*/
struct cgroup_fs_context {
+ struct cgroup_root *root;
unsigned int flags; /* CGRP_ROOT_* flags */
/* cgroup1 bits */
@@ -208,7 +209,7 @@ int cgroup_path_ns_locked(struct cgroup *cgrp, char *buf, size_t buflen,
struct cgroup_namespace *ns);
void cgroup_free_root(struct cgroup_root *root);
-void init_cgroup_root(struct cgroup_root *root, struct cgroup_fs_context *ctx);
+void init_cgroup_root(struct cgroup_fs_context *ctx);
int cgroup_setup_root(struct cgroup_root *root, u16 ss_mask);
int rebind_subsystems(struct cgroup_root *dst_root, u16 ss_mask);
struct dentry *cgroup_do_mount(struct file_system_type *fs_type, int flags,