cgroup: store a reference to cgroup_ns into cgroup_fs_context
... and trim cgroup_do_mount() arguments (renaming it to cgroup_do_get_tree()) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -42,6 +42,7 @@ extern void __init enable_debug_cgroup(void);
|
||||
*/
|
||||
struct cgroup_fs_context {
|
||||
struct cgroup_root *root;
|
||||
struct cgroup_namespace *ns;
|
||||
unsigned int flags; /* CGRP_ROOT_* flags */
|
||||
|
||||
/* cgroup1 bits */
|
||||
@@ -212,8 +213,7 @@ void cgroup_free_root(struct cgroup_root *root);
|
||||
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);
|
||||
int cgroup_do_mount(struct fs_context *fc, unsigned long magic,
|
||||
struct cgroup_namespace *ns);
|
||||
int cgroup_do_get_tree(struct fs_context *fc);
|
||||
|
||||
int cgroup_migrate_vet_dst(struct cgroup *dst_cgrp);
|
||||
void cgroup_migrate_finish(struct cgroup_mgctx *mgctx);
|
||||
|
Reference in New Issue
Block a user