diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-26 06:12:05 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 18:48:05 -0500 |
commit | 33faaa380e9ec4b93503cae8c9969fb599f0f283 (patch) | |
tree | 101b6a5994840c95be7df8eeaf42c748bbe2b987 /fs/nfs/nfs4namespace.c | |
parent | b48e127884b117b429d3473577b9dc3f2b42b8eb (diff) |
NFS: pass transport net to rpc_pton() while parse server name
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4namespace.c')
-rw-r--r-- | fs/nfs/nfs4namespace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/nfs4namespace.c b/fs/nfs/nfs4namespace.c index 48a9acdbaeb6..667ea7406fd3 100644 --- a/fs/nfs/nfs4namespace.c +++ b/fs/nfs/nfs4namespace.c | |||
@@ -97,11 +97,11 @@ static size_t nfs_parse_server_name(char *string, size_t len, | |||
97 | struct sockaddr *sa, size_t salen, struct nfs_server *server) | 97 | struct sockaddr *sa, size_t salen, struct nfs_server *server) |
98 | { | 98 | { |
99 | ssize_t ret; | 99 | ssize_t ret; |
100 | struct net *net = server->client->cl_xprt->xprt_net; | ||
100 | 101 | ||
101 | ret = rpc_pton(&init_net, string, len, sa, salen); | 102 | ret = rpc_pton(net, string, len, sa, salen); |
102 | if (ret == 0) { | 103 | if (ret == 0) { |
103 | ret = nfs_dns_resolve_name(server->client->cl_xprt->xprt_net, | 104 | ret = nfs_dns_resolve_name(net, string, len, sa, salen); |
104 | string, len, sa, salen); | ||
105 | if (ret < 0) | 105 | if (ret < 0) |
106 | ret = 0; | 106 | ret = 0; |
107 | } | 107 | } |