diff options
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index 85d9ed1dcf42..d8b8d56266cb 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
@@ -104,7 +104,9 @@ static void * nfs_follow_mountpoint(struct dentry *dentry, struct nameidata *nd) | |||
104 | goto out_follow; | 104 | goto out_follow; |
105 | /* Look it up again */ | 105 | /* Look it up again */ |
106 | parent = dget_parent(nd->dentry); | 106 | parent = dget_parent(nd->dentry); |
107 | err = server->rpc_ops->lookup(parent->d_inode, &nd->dentry->d_name, &fh, &fattr); | 107 | err = server->nfs_client->rpc_ops->lookup(parent->d_inode, |
108 | &nd->dentry->d_name, | ||
109 | &fh, &fattr); | ||
108 | dput(parent); | 110 | dput(parent); |
109 | if (err != 0) | 111 | if (err != 0) |
110 | goto out_err; | 112 | goto out_err; |
@@ -178,7 +180,7 @@ static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, | |||
178 | { | 180 | { |
179 | #ifdef CONFIG_NFS_V4 | 181 | #ifdef CONFIG_NFS_V4 |
180 | struct vfsmount *mnt = NULL; | 182 | struct vfsmount *mnt = NULL; |
181 | switch (server->rpc_ops->version) { | 183 | switch (server->nfs_client->cl_nfsversion) { |
182 | case 2: | 184 | case 2: |
183 | case 3: | 185 | case 3: |
184 | mnt = vfs_kern_mount(&clone_nfs_fs_type, 0, devname, mountdata); | 186 | mnt = vfs_kern_mount(&clone_nfs_fs_type, 0, devname, mountdata); |