diff options
author | David Howells <dhowells@redhat.com> | 2006-08-22 20:06:12 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:35 -0400 |
commit | 8fa5c000d7f986ef9cdc6d95f9f7fcee20e0a7d6 (patch) | |
tree | 356b811803db9775fd9c870d189a9ff75885ae6c /fs/nfs/namespace.c | |
parent | 1f163415dc05983830bcc47b33c155b2528b1574 (diff) |
NFS: Move rpc_ops from nfs_server to nfs_client
Move the rpc_ops from the nfs_server struct to the nfs_client struct as they're
common to all server records of a particular NFS protocol version.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
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); |