Lines Matching refs:fc

61 static int proc_parse_hidepid_param(struct fs_context *fc, struct fs_parameter *param)  in proc_parse_hidepid_param()  argument
63 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_hidepid_param()
69 return invalf(fc, "proc: unexpected type of hidepid value\n"); in proc_parse_hidepid_param()
73 return invalf(fc, "proc: unknown value of hidepid - %s\n", param->string); in proc_parse_hidepid_param()
87 return invalf(fc, "proc: unknown value of hidepid - %s\n", param->string); in proc_parse_hidepid_param()
92 static int proc_parse_subset_param(struct fs_context *fc, char *value) in proc_parse_subset_param() argument
94 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_subset_param()
106 return invalf(fc, "proc: unsupported subset option - %s\n", value); in proc_parse_subset_param()
115 static int proc_parse_param(struct fs_context *fc, struct fs_parameter *param) in proc_parse_param() argument
117 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_param()
121 opt = fs_parse(fc, proc_fs_parameters, param, &result); in proc_parse_param()
131 if (proc_parse_hidepid_param(fc, param)) in proc_parse_param()
136 if (proc_parse_subset_param(fc, param->string) < 0) in proc_parse_param()
149 struct fs_context *fc, in proc_apply_options() argument
152 struct proc_fs_context *ctx = fc->fs_private; in proc_apply_options()
162 static int proc_fill_super(struct super_block *s, struct fs_context *fc) in proc_fill_super() argument
164 struct proc_fs_context *ctx = fc->fs_private; in proc_fill_super()
174 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super()
216 static int proc_reconfigure(struct fs_context *fc) in proc_reconfigure() argument
218 struct super_block *sb = fc->root->d_sb; in proc_reconfigure()
223 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
227 static int proc_get_tree(struct fs_context *fc) in proc_get_tree() argument
229 return get_tree_nodev(fc, proc_fill_super); in proc_get_tree()
232 static void proc_fs_context_free(struct fs_context *fc) in proc_fs_context_free() argument
234 struct proc_fs_context *ctx = fc->fs_private; in proc_fs_context_free()
247 static int proc_init_fs_context(struct fs_context *fc) in proc_init_fs_context() argument
256 put_user_ns(fc->user_ns); in proc_init_fs_context()
257 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); in proc_init_fs_context()
258 fc->fs_private = ctx; in proc_init_fs_context()
259 fc->ops = &proc_fs_context_ops; in proc_init_fs_context()