Lines Matching refs:fc
1899 static int cgroup2_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup2_parse_param() argument
1901 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup2_parse_param()
1905 opt = fs_parse(fc, cgroup2_fs_parameters, param, &result); in cgroup2_parse_param()
1954 static int cgroup_reconfigure(struct fs_context *fc) in cgroup_reconfigure() argument
1956 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup_reconfigure()
2109 int cgroup_do_get_tree(struct fs_context *fc) in cgroup_do_get_tree() argument
2111 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup_do_get_tree()
2115 if (fc->fs_type == &cgroup2_fs_type) in cgroup_do_get_tree()
2119 ret = kernfs_get_tree(fc); in cgroup_do_get_tree()
2127 struct super_block *sb = fc->root->d_sb; in cgroup_do_get_tree()
2139 dput(fc->root); in cgroup_do_get_tree()
2145 fc->root = nsdentry; in cgroup_do_get_tree()
2157 static void cgroup_fs_context_free(struct fs_context *fc) in cgroup_fs_context_free() argument
2159 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup_fs_context_free()
2164 kernfs_free_fs_context(fc); in cgroup_fs_context_free()
2168 static int cgroup_get_tree(struct fs_context *fc) in cgroup_get_tree() argument
2170 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup_get_tree()
2177 ret = cgroup_do_get_tree(fc); in cgroup_get_tree()
2201 static int cgroup_init_fs_context(struct fs_context *fc) in cgroup_init_fs_context() argument
2211 fc->fs_private = &ctx->kfc; in cgroup_init_fs_context()
2212 if (fc->fs_type == &cgroup2_fs_type) in cgroup_init_fs_context()
2213 fc->ops = &cgroup_fs_context_ops; in cgroup_init_fs_context()
2215 fc->ops = &cgroup1_fs_context_ops; in cgroup_init_fs_context()
2216 put_user_ns(fc->user_ns); in cgroup_init_fs_context()
2217 fc->user_ns = get_user_ns(ctx->ns->user_ns); in cgroup_init_fs_context()
2218 fc->global = true; in cgroup_init_fs_context()
2269 static int cpuset_init_fs_context(struct fs_context *fc) in cpuset_init_fs_context() argument
2275 err = cgroup_init_fs_context(fc); in cpuset_init_fs_context()
2281 fc->ops = &cpuset_fs_context_ops; in cpuset_init_fs_context()
2283 ctx = cgroup_fc2context(fc); in cpuset_init_fs_context()
2289 put_filesystem(fc->fs_type); in cpuset_init_fs_context()
2290 fc->fs_type = &cgroup_fs_type; in cpuset_init_fs_context()