diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-05-10 15:07:30 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-14 20:30:25 -0400 |
commit | 3028eb2b324c517da1e9e589743c4a5154f70dd1 (patch) | |
tree | 9f2f13e0bea581bac9f68a8f516a3018e3d78e15 /fs/nfs/getroot.c | |
parent | 0427708657750bdc03af3491a0297cab5e7efabf (diff) |
NFS: Rename nfs4_proc_get_root()
This function is really getting the root filehandle and not the root
dentry of the filesystem. I also removed the rpc_ops lookup from
nfs4_get_rootfh() under the assumption that if we reach this function
then we already know we are using NFS v4.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/getroot.c')
-rw-r--r-- | fs/nfs/getroot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c index 4ca6f5c8038e..8a0f33ead77c 100644 --- a/fs/nfs/getroot.c +++ b/fs/nfs/getroot.c | |||
@@ -150,7 +150,7 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh) | |||
150 | goto out; | 150 | goto out; |
151 | 151 | ||
152 | /* Start by getting the root filehandle from the server */ | 152 | /* Start by getting the root filehandle from the server */ |
153 | ret = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); | 153 | ret = nfs4_proc_get_rootfh(server, mntfh, &fsinfo); |
154 | if (ret < 0) { | 154 | if (ret < 0) { |
155 | dprintk("nfs4_get_rootfh: getroot error = %d\n", -ret); | 155 | dprintk("nfs4_get_rootfh: getroot error = %d\n", -ret); |
156 | goto out; | 156 | goto out; |