diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-01 19:17:31 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-01 19:17:31 -0400 |
commit | 9f62387d6e26532bcbfb15606956074192ee526a (patch) | |
tree | 9102b0babaa7918bcc87f11a8986deee092be908 /fs/nfs/nfs4state.c | |
parent | 2afdfa5a846246de50e1881f71ba5c0aac0b415f (diff) |
NFSv4: Fix up a merge conflict between migration and container changes
nfs_callback_tcpport is now per-net_namespace.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 5c4286643701..3da8130d4460 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -121,12 +121,13 @@ int nfs40_discover_server_trunking(struct nfs_client *clp, | |||
121 | .clientid = clp->cl_clientid, | 121 | .clientid = clp->cl_clientid, |
122 | .confirm = clp->cl_confirm, | 122 | .confirm = clp->cl_confirm, |
123 | }; | 123 | }; |
124 | struct nfs_net *nn = net_generic(clp->cl_net, nfs_net_id); | ||
124 | unsigned short port; | 125 | unsigned short port; |
125 | int status; | 126 | int status; |
126 | 127 | ||
127 | port = nfs_callback_tcpport; | 128 | port = nn->nfs_callback_tcpport; |
128 | if (clp->cl_addr.ss_family == AF_INET6) | 129 | if (clp->cl_addr.ss_family == AF_INET6) |
129 | port = nfs_callback_tcpport6; | 130 | port = nn->nfs_callback_tcpport6; |
130 | 131 | ||
131 | status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); | 132 | status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); |
132 | if (status != 0) | 133 | if (status != 0) |