Lines Matching full:fc

58 static int proc_parse_hidepid_param(struct fs_context *fc, struct fs_parameter *param)  in proc_parse_hidepid_param()  argument
60 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_hidepid_param()
66 return invalf(fc, "proc: unexpected type of hidepid value\n"); in proc_parse_hidepid_param()
70 return invalf(fc, "proc: unknown value of hidepid - %s\n", param->string); in proc_parse_hidepid_param()
84 return invalf(fc, "proc: unknown value of hidepid - %s\n", param->string); in proc_parse_hidepid_param()
89 static int proc_parse_subset_param(struct fs_context *fc, char *value) in proc_parse_subset_param() argument
91 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_subset_param()
103 return invalf(fc, "proc: unsupported subset option - %s\n", value); in proc_parse_subset_param()
112 static int proc_parse_param(struct fs_context *fc, struct fs_parameter *param) in proc_parse_param() argument
114 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_param()
118 opt = fs_parse(fc, proc_fs_parameters, param, &result); in proc_parse_param()
128 if (proc_parse_hidepid_param(fc, param)) in proc_parse_param()
133 if (proc_parse_subset_param(fc, param->string) < 0) in proc_parse_param()
146 struct fs_context *fc, in proc_apply_options() argument
149 struct proc_fs_context *ctx = fc->fs_private; in proc_apply_options()
159 static int proc_fill_super(struct super_block *s, struct fs_context *fc) in proc_fill_super() argument
161 struct proc_fs_context *ctx = fc->fs_private; in proc_fill_super()
171 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super()
213 static int proc_reconfigure(struct fs_context *fc) in proc_reconfigure() argument
215 struct super_block *sb = fc->root->d_sb; in proc_reconfigure()
220 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
224 static int proc_get_tree(struct fs_context *fc) in proc_get_tree() argument
226 return get_tree_nodev(fc, proc_fill_super); in proc_get_tree()
229 static void proc_fs_context_free(struct fs_context *fc) in proc_fs_context_free() argument
231 struct proc_fs_context *ctx = fc->fs_private; in proc_fs_context_free()
244 static int proc_init_fs_context(struct fs_context *fc) in proc_init_fs_context() argument
253 put_user_ns(fc->user_ns); in proc_init_fs_context()
254 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); in proc_init_fs_context()
255 fc->fs_private = ctx; in proc_init_fs_context()
256 fc->ops = &proc_fs_context_ops; in proc_init_fs_context()