Lines Matching defs:root
2 /* getroot.c: get the root dentry for an NFS mount
36 * Set the superblock root dentry.
41 /* The mntroot acts as the dummy root dentry for this superblock */
65 * get an NFS2/NFS3 root dentry from the root filehandle
72 struct dentry *root;
82 /* get the actual root for this mount */
93 nfs_errorf(fc, "NFS: Couldn't getattr on root");
99 dprintk("nfs_get_root: get root inode failed\n");
101 nfs_errorf(fc, "NFS: Couldn't get root inode");
109 /* root dentries normally start off anonymous and get spliced in later
111 * exists, we'll pick it up at this point and use it as the root
113 root = d_obtain_root(inode);
114 if (IS_ERR(root)) {
115 dprintk("nfs_get_root: get root dentry failed\n");
116 error = PTR_ERR(root);
117 nfs_errorf(fc, "NFS: Couldn't get root dentry");
121 security_d_instantiate(root, inode);
122 spin_lock(&root->d_lock);
123 if (IS_ROOT(root) && !root->d_fsdata &&
124 !(root->d_flags & DCACHE_NFSFS_RENAMED)) {
125 root->d_fsdata = name;
128 spin_unlock(&root->d_lock);
129 fc->root = root;
133 if (d_inode(fc->root)->i_fop != &nfs_dir_operations) {
162 dput(fc->root);
163 fc->root = NULL;