Lines Matching refs:fc
923 int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) in cgroup1_parse_param() argument
925 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_parse_param()
930 opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); in cgroup1_parse_param()
934 ret = vfs_parse_fs_param_source(fc, param); in cgroup1_parse_param()
941 return invalfc(fc, "Disabled controller '%s'", in cgroup1_parse_param()
946 return invalfc(fc, "Unknown subsys name '%s'", param->key); in cgroup1_parse_param()
980 return invalfc(fc, "release_agent respecified"); in cgroup1_parse_param()
985 if ((fc->user_ns != &init_user_ns) || !capable(CAP_SYS_ADMIN)) in cgroup1_parse_param()
986 return invalfc(fc, "Setting release_agent not allowed"); in cgroup1_parse_param()
996 return invalfc(fc, "Empty name"); in cgroup1_parse_param()
998 return invalfc(fc, "Name too long"); in cgroup1_parse_param()
1006 return invalfc(fc, "Invalid name"); in cgroup1_parse_param()
1010 return invalfc(fc, "name respecified"); in cgroup1_parse_param()
1018 static int check_cgroupfs_options(struct fs_context *fc) in check_cgroupfs_options() argument
1020 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in check_cgroupfs_options()
1045 return invalfc(fc, "subsys name conflicts with all"); in check_cgroupfs_options()
1055 return invalfc(fc, "Need name or subsystem set"); in check_cgroupfs_options()
1063 return invalfc(fc, "noprefix used incorrectly"); in check_cgroupfs_options()
1067 return invalfc(fc, "none used incorrectly"); in check_cgroupfs_options()
1072 int cgroup1_reconfigure(struct fs_context *fc) in cgroup1_reconfigure() argument
1074 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_reconfigure()
1075 struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb); in cgroup1_reconfigure()
1083 ret = check_cgroupfs_options(fc); in cgroup1_reconfigure()
1097 errorfc(fc, "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"", in cgroup1_reconfigure()
1144 static int cgroup1_root_to_use(struct fs_context *fc) in cgroup1_root_to_use() argument
1146 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_root_to_use()
1152 ret = check_cgroupfs_options(fc); in cgroup1_root_to_use()
1214 return invalfc(fc, "No subsys list or none specified"); in cgroup1_root_to_use()
1236 int cgroup1_get_tree(struct fs_context *fc) in cgroup1_get_tree() argument
1238 struct cgroup_fs_context *ctx = cgroup_fc2context(fc); in cgroup1_get_tree()
1247 ret = cgroup1_root_to_use(fc); in cgroup1_get_tree()
1254 ret = cgroup_do_get_tree(fc); in cgroup1_get_tree()
1257 fc_drop_locked(fc); in cgroup1_get_tree()