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/nfsd/nfssvc.c | |
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/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 07e4f5d7baa8..ab7f249055b5 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -244,7 +244,7 @@ static int nfsd_init_socks(int port) | |||
244 | if (!list_empty(&nfsd_serv->sv_permsocks)) | 244 | if (!list_empty(&nfsd_serv->sv_permsocks)) |
245 | return 0; | 245 | return 0; |
246 | 246 | ||
247 | error = svc_create_xprt(nfsd_serv, "udp", port, | 247 | error = svc_create_xprt(nfsd_serv, "udp", PF_INET, port, |
248 | SVC_SOCK_DEFAULTS); | 248 | SVC_SOCK_DEFAULTS); |
249 | if (error < 0) | 249 | if (error < 0) |
250 | return error; | 250 | return error; |
@@ -253,7 +253,7 @@ static int nfsd_init_socks(int port) | |||
253 | if (error < 0) | 253 | if (error < 0) |
254 | return error; | 254 | return error; |
255 | 255 | ||
256 | error = svc_create_xprt(nfsd_serv, "tcp", port, | 256 | error = svc_create_xprt(nfsd_serv, "tcp", PF_INET, port, |
257 | SVC_SOCK_DEFAULTS); | 257 | SVC_SOCK_DEFAULTS); |
258 | if (error < 0) | 258 | if (error < 0) |
259 | return error; | 259 | return error; |