Lines Matching refs:root
72 struct dentry *root; in nfs_get_root() local
110 root = d_obtain_root(inode); in nfs_get_root()
111 if (IS_ERR(root)) { in nfs_get_root()
113 error = PTR_ERR(root); in nfs_get_root()
118 security_d_instantiate(root, inode); in nfs_get_root()
119 spin_lock(&root->d_lock); in nfs_get_root()
120 if (IS_ROOT(root) && !root->d_fsdata && in nfs_get_root()
121 !(root->d_flags & DCACHE_NFSFS_RENAMED)) { in nfs_get_root()
122 root->d_fsdata = name; in nfs_get_root()
125 spin_unlock(&root->d_lock); in nfs_get_root()
126 fc->root = root; in nfs_get_root()
130 if (d_inode(fc->root)->i_fop != &nfs_dir_operations) { in nfs_get_root()
161 dput(fc->root); in nfs_get_root()
162 fc->root = NULL; in nfs_get_root()