Lines Matching refs:fc
26 static int sysfs_get_tree(struct fs_context *fc) in sysfs_get_tree() argument
28 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_get_tree()
31 ret = kernfs_get_tree(fc); in sysfs_get_tree()
36 fc->root->d_sb->s_iflags |= SB_I_USERNS_VISIBLE; in sysfs_get_tree()
40 static void sysfs_fs_context_free(struct fs_context *fc) in sysfs_fs_context_free() argument
42 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_fs_context_free()
46 kernfs_free_fs_context(fc); in sysfs_fs_context_free()
55 static int sysfs_init_fs_context(struct fs_context *fc) in sysfs_init_fs_context() argument
60 if (!(fc->sb_flags & SB_KERNMOUNT)) { in sysfs_init_fs_context()
72 fc->fs_private = kfc; in sysfs_init_fs_context()
73 fc->ops = &sysfs_fs_context_ops; in sysfs_init_fs_context()
75 put_user_ns(fc->user_ns); in sysfs_init_fs_context()
76 fc->user_ns = get_user_ns(netns->user_ns); in sysfs_init_fs_context()
78 fc->global = true; in sysfs_init_fs_context()