Lines Matching refs:fc
40 static int afs_init_fs_context(struct fs_context *fc);
223 static int afs_parse_source(struct fs_context *fc, struct fs_parameter *param) in afs_parse_source() argument
225 struct afs_fs_context *ctx = fc->fs_private; in afs_parse_source()
232 if (fc->source) in afs_parse_source()
233 return invalf(fc, "kAFS: Multiple sources not supported"); in afs_parse_source()
310 fc->source = param->string; in afs_parse_source()
318 static int afs_parse_param(struct fs_context *fc, struct fs_parameter *param) in afs_parse_param() argument
321 struct afs_fs_context *ctx = fc->fs_private; in afs_parse_param()
324 opt = fs_parse(fc, afs_fs_parameters, param, &result); in afs_parse_param()
330 return afs_parse_source(fc, param); in afs_parse_param()
355 static int afs_validate_fc(struct fs_context *fc) in afs_validate_fc() argument
357 struct afs_fs_context *ctx = fc->fs_private; in afs_validate_fc()
410 fc->sb_flags |= SB_RDONLY; in afs_validate_fc()
420 static int afs_test_super(struct super_block *sb, struct fs_context *fc) in afs_test_super() argument
422 struct afs_fs_context *ctx = fc->fs_private; in afs_test_super()
425 return (as->net_ns == fc->net_ns && in afs_test_super()
432 static int afs_dynroot_test_super(struct super_block *sb, struct fs_context *fc) in afs_dynroot_test_super() argument
436 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super()
440 static int afs_set_super(struct super_block *sb, struct fs_context *fc) in afs_set_super() argument
500 static struct afs_super_info *afs_alloc_sbi(struct fs_context *fc) in afs_alloc_sbi() argument
502 struct afs_fs_context *ctx = fc->fs_private; in afs_alloc_sbi()
507 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi()
548 static int afs_get_tree(struct fs_context *fc) in afs_get_tree() argument
550 struct afs_fs_context *ctx = fc->fs_private; in afs_get_tree()
555 ret = afs_validate_fc(fc); in afs_get_tree()
563 as = afs_alloc_sbi(fc); in afs_get_tree()
566 fc->s_fs_info = as; in afs_get_tree()
569 sb = sget_fc(fc, in afs_get_tree()
589 fc->root = dget(sb->s_root); in afs_get_tree()
601 static void afs_free_fc(struct fs_context *fc) in afs_free_fc() argument
603 struct afs_fs_context *ctx = fc->fs_private; in afs_free_fc()
605 afs_destroy_sbi(fc->s_fs_info); in afs_free_fc()
621 static int afs_init_fs_context(struct fs_context *fc) in afs_init_fs_context() argument
631 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
639 fc->fs_private = ctx; in afs_init_fs_context()
640 fc->ops = &afs_context_ops; in afs_init_fs_context()