Lines Matching refs:kfc
28 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_get_tree() local
35 if (kfc->new_sb_created) in sysfs_get_tree()
42 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_fs_context_free() local
44 if (kfc->ns_tag) in sysfs_fs_context_free()
45 kobj_ns_drop(KOBJ_NS_TYPE_NET, kfc->ns_tag); in sysfs_fs_context_free()
47 kfree(kfc); in sysfs_fs_context_free()
57 struct kernfs_fs_context *kfc; in sysfs_init_fs_context() local
65 kfc = kzalloc(sizeof(struct kernfs_fs_context), GFP_KERNEL); in sysfs_init_fs_context()
66 if (!kfc) in sysfs_init_fs_context()
69 kfc->ns_tag = netns = kobj_ns_grab_current(KOBJ_NS_TYPE_NET); in sysfs_init_fs_context()
70 kfc->root = sysfs_root; in sysfs_init_fs_context()
71 kfc->magic = SYSFS_MAGIC; in sysfs_init_fs_context()
72 fc->fs_private = kfc; in sysfs_init_fs_context()