|
@@ -1143,7 +1143,7 @@ static int nfs_lookup_revalidate(struct dentry *dentry, struct nameidata *nd)
|
|
|
if (fhandle == NULL || fattr == NULL)
|
|
|
goto out_error;
|
|
|
|
|
|
- error = NFS_PROTO(dir)->lookup(NFS_SERVER(dir)->client, dir, &dentry->d_name, fhandle, fattr);
|
|
|
+ error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr);
|
|
|
if (error)
|
|
|
goto out_bad;
|
|
|
if (nfs_compare_fh(NFS_FH(inode), fhandle))
|
|
@@ -1299,7 +1299,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
|
|
|
parent = dentry->d_parent;
|
|
|
/* Protect against concurrent sillydeletes */
|
|
|
nfs_block_sillyrename(parent);
|
|
|
- error = NFS_PROTO(dir)->lookup(NFS_SERVER(dir)->client, dir, &dentry->d_name, fhandle, fattr);
|
|
|
+ error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr);
|
|
|
if (error == -ENOENT)
|
|
|
goto no_entry;
|
|
|
if (error < 0) {
|
|
@@ -1646,7 +1646,7 @@ int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fhandle,
|
|
|
if (dentry->d_inode)
|
|
|
goto out;
|
|
|
if (fhandle->size == 0) {
|
|
|
- error = NFS_PROTO(dir)->lookup(NFS_SERVER(dir)->client, dir, &dentry->d_name, fhandle, fattr);
|
|
|
+ error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr);
|
|
|
if (error)
|
|
|
goto out_error;
|
|
|
}
|