Lines Matching refs:fc
928 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup1_parse_param() argument
930 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_parse_param()
935 opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); in cgroup1_parse_param()
939 ret = vfs_parse_fs_param_source(fc, param); in cgroup1_parse_param()
946 return invalfc(fc, "Disabled controller '%s'", in cgroup1_parse_param()
951 return invalfc(fc, "Unknown subsys name '%s'", param->key); in cgroup1_parse_param()
979 return invalfc(fc, "release_agent respecified"); in cgroup1_parse_param()
984 if ((fc->user_ns != &init_user_ns) || !capable(CAP_SYS_ADMIN)) in cgroup1_parse_param()
985 return invalfc(fc, "Setting release_agent not allowed"); in cgroup1_parse_param()
995 return invalfc(fc, "Empty name"); in cgroup1_parse_param()
997 return invalfc(fc, "Name too long"); in cgroup1_parse_param()
1005 return invalfc(fc, "Invalid name"); in cgroup1_parse_param()
1009 return invalfc(fc, "name respecified"); in cgroup1_parse_param()
1017 static int check_cgroupfs_options(struct fs_context *fc) in check_cgroupfs_options() argument
1019 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in check_cgroupfs_options()
1044 return invalfc(fc, "subsys name conflicts with all"); in check_cgroupfs_options()
1054 return invalfc(fc, "Need name or subsystem set"); in check_cgroupfs_options()
1062 return invalfc(fc, "noprefix used incorrectly"); in check_cgroupfs_options()
1066 return invalfc(fc, "none used incorrectly"); in check_cgroupfs_options()
1071 int cgroup1_reconfigure(struct fs_context *fc) in cgroup1_reconfigure() argument
1073 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_reconfigure()
1074 struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb); in cgroup1_reconfigure()
1082 ret = check_cgroupfs_options(fc); in cgroup1_reconfigure()
1096 errorfc(fc, "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"", in cgroup1_reconfigure()
1143 static int cgroup1_root_to_use(struct fs_context *fc) in cgroup1_root_to_use() argument
1145 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_root_to_use()
1151 ret = check_cgroupfs_options(fc); in cgroup1_root_to_use()
1213 return invalfc(fc, "No subsys list or none specified"); in cgroup1_root_to_use()
1232 int cgroup1_get_tree(struct fs_context *fc) in cgroup1_get_tree() argument
1234 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_get_tree()
1243 ret = cgroup1_root_to_use(fc); in cgroup1_get_tree()
1250 ret = cgroup_do_get_tree(fc); in cgroup1_get_tree()
1253 fc_drop_locked(fc); in cgroup1_get_tree()