Lines Matching defs:root
29 struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry));
30 struct kernfs_syscall_ops *scops = root->syscall_ops;
33 return scops->show_options(sf, root);
40 struct kernfs_root *root = kernfs_root(node);
41 struct kernfs_syscall_ops *scops = root->syscall_ops;
44 return scops->show_path(sf, node, root);
111 kn = kernfs_find_and_get_node_by_id(info->root, id);
171 return kernfs_info(sb)->root;
179 * Say the path is /a/b/c/d. @child is d, @parent is %NULL. We return the root
217 /* Check if this is the root kernfs_node */
251 struct kernfs_root *kf_root = kfc->root;
253 struct dentry *root;
263 if (info->root->flags & KERNFS_ROOT_SUPPORT_EXPORTOP)
270 /* get root inode, initialize and unlock it */
272 inode = kernfs_get_inode(sb, info->root->kn);
275 pr_debug("kernfs: could not get root inode\n");
279 /* instantiate and link root dentry */
280 root = d_make_root(inode);
281 if (!root) {
282 pr_debug("%s: could not get root dentry!\n", __func__);
285 sb->s_root = root;
295 return sb_info->root == info->root && sb_info->ns == info->ns;
325 * specify the hierarchy and namespace tag to mount via ->@root and ->@ns,
341 info->root = kfc->root;
352 struct kernfs_root *root = kfc->root;
365 down_write(&root->kernfs_supers_rwsem);
366 list_add(&info->node, &info->root->supers);
367 up_write(&root->kernfs_supers_rwsem);
370 fc->root = dget(sb->s_root);
392 struct kernfs_root *root = info->root;
394 down_write(&root->kernfs_supers_rwsem);
396 up_write(&root->kernfs_supers_rwsem);