Lines Matching refs:fc
951 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param)
953 struct cgroup_fs_context *ctx = cgroup_fc2context(fc);
958 opt = fs_parse(fc, cgroup1_fs_parameters, param, &result);
962 ret = vfs_parse_fs_param_source(fc, param);
972 return invalfc(fc, "Disabled controller '%s'", param->key);
977 return invalfc(fc, "Unknown subsys name '%s'", param->key);
1006 return invalfc(fc, "release_agent respecified");
1012 if ((fc->user_ns != &init_user_ns) || !capable(CAP_SYS_ADMIN)) {
1013 return invalfc(fc, "Setting release_agent not allowed");
1025 return invalfc(fc, "Empty name");
1028 return invalfc(fc, "Name too long");
1039 return invalfc(fc, "Invalid name");
1043 return invalfc(fc, "name respecified");
1054 static int check_cgroupfs_options(struct fs_context *fc)
1056 struct cgroup_fs_context *ctx = cgroup_fc2context(fc);
1080 return invalfc(fc, "subsys name conflicts with all");
1091 return invalfc(fc, "Need name or subsystem set");
1100 return invalfc(fc, "noprefix used incorrectly");
1105 return invalfc(fc, "none used incorrectly");
1111 int cgroup1_reconfigure(struct fs_context *fc)
1113 struct cgroup_fs_context *ctx = cgroup_fc2context(fc);
1114 struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb);
1122 ret = check_cgroupfs_options(fc);
1136 errorfc(fc, "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"", ctx->flags, ctx->name ?: "",
1184 static int cgroup1_root_to_use(struct fs_context *fc)
1186 struct cgroup_fs_context *ctx = cgroup_fc2context(fc);
1192 ret = check_cgroupfs_options(fc);
1261 return invalfc(fc, "No subsys list or none specified");
1284 int cgroup1_get_tree(struct fs_context *fc)
1286 struct cgroup_fs_context *ctx = cgroup_fc2context(fc);
1296 ret = cgroup1_root_to_use(fc);
1304 ret = cgroup_do_get_tree(fc);
1308 fc_drop_locked(fc);