diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/lockd/svc.c | 3 | ||||
-rw-r--r-- | fs/nfs/callback.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 | ||||
-rw-r--r-- | fs/nfsd/nfssvc.c | 4 |
4 files changed, 7 insertions, 6 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 64f1c31b5853..390c5593655c 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c | |||
@@ -211,7 +211,8 @@ static int create_lockd_listener(struct svc_serv *serv, char *name, | |||
211 | 211 | ||
212 | xprt = svc_find_xprt(serv, name, 0, 0); | 212 | xprt = svc_find_xprt(serv, name, 0, 0); |
213 | if (xprt == NULL) | 213 | if (xprt == NULL) |
214 | return svc_create_xprt(serv, name, port, SVC_SOCK_DEFAULTS); | 214 | return svc_create_xprt(serv, name, nlmsvc_family, |
215 | port, SVC_SOCK_DEFAULTS); | ||
215 | 216 | ||
216 | svc_xprt_put(xprt); | 217 | svc_xprt_put(xprt); |
217 | return 0; | 218 | return 0; |
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; |
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 5a936c14f6ff..a4ed8644d69c 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -943,7 +943,7 @@ static ssize_t __write_ports(struct file *file, char *buf, size_t size) | |||
943 | err = nfsd_create_serv(); | 943 | err = nfsd_create_serv(); |
944 | if (!err) { | 944 | if (!err) { |
945 | err = svc_create_xprt(nfsd_serv, | 945 | err = svc_create_xprt(nfsd_serv, |
946 | transport, port, | 946 | transport, PF_INET, port, |
947 | SVC_SOCK_ANONYMOUS); | 947 | SVC_SOCK_ANONYMOUS); |
948 | if (err == -ENOENT) | 948 | if (err == -ENOENT) |
949 | /* Give a reasonable perror msg for | 949 | /* Give a reasonable perror msg for |
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; |