Lines Matching refs:root
29 struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry)); in kernfs_sop_show_options() local
30 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_options()
33 return scops->show_options(sf, root); in kernfs_sop_show_options()
40 struct kernfs_root *root = kernfs_root(node); in kernfs_sop_show_path() local
41 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_path()
44 return scops->show_path(sf, node, root); in kernfs_sop_show_path()
111 kn = kernfs_find_and_get_node_by_id(info->root, id); in __kernfs_fh_to_dentry()
171 return kernfs_info(sb)->root; in kernfs_root_from_sb()
251 struct kernfs_root *kf_root = kfc->root; in kernfs_fill_super()
253 struct dentry *root; in kernfs_fill_super() local
263 if (info->root->flags & KERNFS_ROOT_SUPPORT_EXPORTOP) in kernfs_fill_super()
272 inode = kernfs_get_inode(sb, info->root->kn); in kernfs_fill_super()
280 root = d_make_root(inode); in kernfs_fill_super()
281 if (!root) { in kernfs_fill_super()
285 sb->s_root = root; in kernfs_fill_super()
295 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super()
341 info->root = kfc->root; in kernfs_get_tree()
352 struct kernfs_root *root = kfc->root; in kernfs_get_tree() local
365 down_write(&root->kernfs_supers_rwsem); in kernfs_get_tree()
366 list_add(&info->node, &info->root->supers); in kernfs_get_tree()
367 up_write(&root->kernfs_supers_rwsem); in kernfs_get_tree()
370 fc->root = dget(sb->s_root); in kernfs_get_tree()
392 struct kernfs_root *root = info->root; in kernfs_kill_sb() local
394 down_write(&root->kernfs_supers_rwsem); in kernfs_kill_sb()
396 up_write(&root->kernfs_supers_rwsem); in kernfs_kill_sb()