Lines Matching refs:fsc

184 static int fuse_reconfigure(struct fs_context *fsc)  in fuse_reconfigure()  argument
186 struct super_block *sb = fsc->root->d_sb; in fuse_reconfigure()
189 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure()
753 static int fuse_parse_param(struct fs_context *fsc, struct fs_parameter *param) in fuse_parse_param() argument
756 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_parse_param()
761 if (fsc->purpose == FS_CONTEXT_FOR_RECONFIGURE) { in fuse_parse_param()
766 if (fsc->oldapi) in fuse_parse_param()
769 return invalfc(fsc, "No changes allowed in reconfigure"); in fuse_parse_param()
772 opt = fs_parse(fsc, fuse_fs_parameters, param, &result); in fuse_parse_param()
778 if (fsc->source) in fuse_parse_param()
779 return invalfc(fsc, "Multiple sources specified"); in fuse_parse_param()
780 fsc->source = param->string; in fuse_parse_param()
786 return invalfc(fsc, "Multiple subtypes specified"); in fuse_parse_param()
798 return invalfc(fsc, "Invalid rootmode"); in fuse_parse_param()
809 if (!kuid_has_mapping(fsc->user_ns, kuid)) in fuse_parse_param()
810 return invalfc(fsc, "Invalid user_id"); in fuse_parse_param()
821 if (!kgid_has_mapping(fsc->user_ns, kgid)) in fuse_parse_param()
822 return invalfc(fsc, "Invalid group_id"); in fuse_parse_param()
841 return invalfc(fsc, "blksize only supported for fuseblk"); in fuse_parse_param()
852 static void fuse_free_fsc(struct fs_context *fsc) in fuse_free_fsc() argument
854 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_free_fsc()
1644 static int fuse_get_tree_submount(struct fs_context *fsc) in fuse_get_tree_submount() argument
1647 struct fuse_inode *mp_fi = fsc->fs_private; in fuse_get_tree_submount()
1657 fsc->s_fs_info = fm; in fuse_get_tree_submount()
1658 sb = sget_fc(fsc, NULL, set_anon_super_fc); in fuse_get_tree_submount()
1659 if (fsc->s_fs_info) in fuse_get_tree_submount()
1676 fsc->root = dget(sb->s_root); in fuse_get_tree_submount()
1685 int fuse_init_fs_context_submount(struct fs_context *fsc) in fuse_init_fs_context_submount() argument
1687 fsc->ops = &fuse_context_submount_ops; in fuse_init_fs_context_submount()
1794 static int fuse_fill_super(struct super_block *sb, struct fs_context *fsc) in fuse_fill_super() argument
1796 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_fill_super()
1825 static int fuse_set_no_super(struct super_block *sb, struct fs_context *fsc) in fuse_set_no_super() argument
1830 static int fuse_test_super(struct super_block *sb, struct fs_context *fsc) in fuse_test_super() argument
1833 return fsc->sget_key == get_fuse_conn_super(sb); in fuse_test_super()
1836 static int fuse_get_tree(struct fs_context *fsc) in fuse_get_tree() argument
1838 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_get_tree()
1855 fuse_conn_init(fc, fm, fsc->user_ns, &fuse_dev_fiq_ops, NULL); in fuse_get_tree()
1858 fsc->s_fs_info = fm; in fuse_get_tree()
1864 err = get_tree_bdev(fsc, fuse_fill_super); in fuse_get_tree()
1881 fsc->sget_key = fud->fc; in fuse_get_tree()
1882 sb = sget_fc(fsc, fuse_test_super, fuse_set_no_super); in fuse_get_tree()
1885 fsc->root = dget(sb->s_root); in fuse_get_tree()
1887 err = get_tree_nodev(fsc, fuse_fill_super); in fuse_get_tree()
1890 if (fsc->s_fs_info) in fuse_get_tree()
1907 static int fuse_init_fs_context(struct fs_context *fsc) in fuse_init_fs_context() argument
1920 if (fsc->fs_type == &fuseblk_fs_type) { in fuse_init_fs_context()
1926 fsc->fs_private = ctx; in fuse_init_fs_context()
1927 fsc->ops = &fuse_context_ops; in fuse_init_fs_context()