diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-03-18 20:46:21 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-28 15:54:36 -0400 |
commit | 9652ada3fb5914a67d8422114e8a76388330fa79 (patch) | |
tree | b37d77bf972dda04b46794c4e50ec6f6d044dc79 /fs/nfs | |
parent | baf01caf09e87579c2d157e5ee29975db8551522 (diff) |
SUNRPC: Change svc_create_xprt() to take a @family argument
The sv_family field is going away. Pass a protocol family argument to
svc_create_xprt() instead of extracting the family from the passed-in
svc_serv struct.
Again, as this is a listener socket and not an address, we make this
new argument an "int" protocol family, instead of an "sa_family_t."
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index 3e634f2a1083..fb35cab63c8a 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c | |||
@@ -122,8 +122,8 @@ int nfs_callback_up(void) | |||
122 | if (!serv) | 122 | if (!serv) |
123 | goto out_err; | 123 | goto out_err; |
124 | 124 | ||
125 | ret = svc_create_xprt(serv, "tcp", nfs_callback_set_tcpport, | 125 | ret = svc_create_xprt(serv, "tcp", nfs_callback_family, |
126 | SVC_SOCK_ANONYMOUS); | 126 | nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS); |
127 | if (ret <= 0) | 127 | if (ret <= 0) |
128 | goto out_err; | 128 | goto out_err; |
129 | nfs_callback_tcpport = ret; | 129 | nfs_callback_tcpport = ret; |