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 */
90 nfs_errorf(fc, "NFS: Couldn't getattr on root");
96 dprintk("nfs_get_root: get root inode failed\n");
98 nfs_errorf(fc, "NFS: Couldn't get root inode");
106 /* root dentries normally start off anonymous and get spliced in later
108 * exists, we'll pick it up at this point and use it as the root
110 root = d_obtain_root(inode);
111 if (IS_ERR(root)) {
112 dprintk("nfs_get_root: get root dentry failed\n");
113 error = PTR_ERR(root);
114 nfs_errorf(fc, "NFS: Couldn't get root dentry");
118 security_d_instantiate(root, inode);
119 spin_lock(&root->d_lock);
120 if (IS_ROOT(root) && !root->d_fsdata &&
121 !(root->d_flags & DCACHE_NFSFS_RENAMED)) {
122 root->d_fsdata = name;
125 spin_unlock(&root->d_lock);
126 fc->root = root;
130 if (d_inode(fc->root)->i_fop != &nfs_dir_operations) {
161 dput(fc->root);
162 fc->root = NULL;