summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-13 13:09:27 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 19:28:12 -0500
commitf2ac4dc911fdbc9b98a6a48b40efc45aa9161775 (patch)
tree0edcf3975fc749ef1e079b197d1711accbb386e3 /fs
parent90100b1766c914c820baa78b5be6845fae1159b8 (diff)
downloadlinux-3.10-f2ac4dc911fdbc9b98a6a48b40efc45aa9161775.tar.gz
linux-3.10-f2ac4dc911fdbc9b98a6a48b40efc45aa9161775.tar.bz2
linux-3.10-f2ac4dc911fdbc9b98a6a48b40efc45aa9161775.zip
SUNRPC: parametrize rpc_uaddr2sockaddr() by network context
Parametrize rpc_uaddr2sockaddr() by network context and thus force it's callers to pass in network context instead of using hard-coded "init_net". Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e8c98f00967..c5cddd65942 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1308,7 +1308,7 @@ gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, struct svc_r
else
goto out_err;
- conn->cb_addrlen = rpc_uaddr2sockaddr(se->se_callback_addr_val,
+ conn->cb_addrlen = rpc_uaddr2sockaddr(&init_net, se->se_callback_addr_val,
se->se_callback_addr_len,
(struct sockaddr *)&conn->cb_addr,
sizeof(conn->cb_addr));