Lines Matching refs:fc

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