aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-13 04:09:27 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 19:28:12 -0500
commitf2ac4dc911fdbc9b98a6a48b40efc45aa9161775 (patch)
tree0edcf3975fc749ef1e079b197d1711accbb386e3 /include/linux/sunrpc
parent90100b1766c914c820baa78b5be6845fae1159b8 (diff)
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 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/clnt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index 7bd114fc84e..9e754e3458f 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -166,7 +166,7 @@ size_t rpc_ntop(const struct sockaddr *, char *, const size_t);
166size_t rpc_pton(struct net *, const char *, const size_t, 166size_t rpc_pton(struct net *, const char *, const size_t,
167 struct sockaddr *, const size_t); 167 struct sockaddr *, const size_t);
168char * rpc_sockaddr2uaddr(const struct sockaddr *, gfp_t); 168char * rpc_sockaddr2uaddr(const struct sockaddr *, gfp_t);
169size_t rpc_uaddr2sockaddr(const char *, const size_t, 169size_t rpc_uaddr2sockaddr(struct net *, const char *, const size_t,
170 struct sockaddr *, const size_t); 170 struct sockaddr *, const size_t);
171 171
172static inline unsigned short rpc_get_port(const struct sockaddr *sap) 172static inline unsigned short rpc_get_port(const struct sockaddr *sap)