Lines Matching refs:root
26 struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry)); in kernfs_sop_show_options() local
27 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_options()
30 return scops->show_options(sf, root); in kernfs_sop_show_options()
37 struct kernfs_root *root = kernfs_root(node); in kernfs_sop_show_path() local
38 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_path()
41 return scops->show_path(sf, node, root); in kernfs_sop_show_path()
60 struct kernfs_node *kernfs_get_node_by_id(struct kernfs_root *root, in kernfs_get_node_by_id() argument
65 kn = kernfs_find_and_get_node_by_ino(root, id->ino); in kernfs_get_node_by_id()
85 kn = kernfs_find_and_get_node_by_ino(info->root, ino); in kernfs_fh_get_inode()
138 return kernfs_info(sb)->root; in kernfs_root_from_sb()
217 struct dentry *root; in kernfs_fill_super() local
227 if (info->root->flags & KERNFS_ROOT_SUPPORT_EXPORTOP) in kernfs_fill_super()
236 inode = kernfs_get_inode(sb, info->root->kn); in kernfs_fill_super()
244 root = d_make_root(inode); in kernfs_fill_super()
245 if (!root) { in kernfs_fill_super()
249 sb->s_root = root; in kernfs_fill_super()
259 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super()
303 info->root = kfc->root; in kernfs_get_tree()
325 list_add(&info->node, &info->root->supers); in kernfs_get_tree()
329 fc->root = dget(sb->s_root); in kernfs_get_tree()