diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-29 08:03:50 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-01 17:18:54 -0400 |
commit | fc5d00b04a3a58cac8620403dfe9f43f72578ec1 (patch) | |
tree | 3a8b9a5ae3456b5846fb64c0a74c9389998b3e18 /fs/nfsd | |
parent | e204e621b4160c802315bc2d0fa335337c0d62e8 (diff) |
sunrpc: Add net argument to svc_create_xprt
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsctl.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfssvc.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index b6e192d25633..b81da24b768c 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -1015,12 +1015,12 @@ static ssize_t __write_ports_addxprt(char *buf) | |||
1015 | if (err != 0) | 1015 | if (err != 0) |
1016 | return err; | 1016 | return err; |
1017 | 1017 | ||
1018 | err = svc_create_xprt(nfsd_serv, transport, | 1018 | err = svc_create_xprt(nfsd_serv, transport, &init_net, |
1019 | PF_INET, port, SVC_SOCK_ANONYMOUS); | 1019 | PF_INET, port, SVC_SOCK_ANONYMOUS); |
1020 | if (err < 0) | 1020 | if (err < 0) |
1021 | goto out_err; | 1021 | goto out_err; |
1022 | 1022 | ||
1023 | err = svc_create_xprt(nfsd_serv, transport, | 1023 | err = svc_create_xprt(nfsd_serv, transport, &init_net, |
1024 | PF_INET6, port, SVC_SOCK_ANONYMOUS); | 1024 | PF_INET6, port, SVC_SOCK_ANONYMOUS); |
1025 | if (err < 0 && err != -EAFNOSUPPORT) | 1025 | if (err < 0 && err != -EAFNOSUPPORT) |
1026 | goto out_close; | 1026 | goto out_close; |
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index e2c43464f237..2bae1d86f5f2 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/lockd/bind.h> | 16 | #include <linux/lockd/bind.h> |
17 | #include <linux/nfsacl.h> | 17 | #include <linux/nfsacl.h> |
18 | #include <linux/seq_file.h> | 18 | #include <linux/seq_file.h> |
19 | #include <net/net_namespace.h> | ||
19 | #include "nfsd.h" | 20 | #include "nfsd.h" |
20 | #include "cache.h" | 21 | #include "cache.h" |
21 | #include "vfs.h" | 22 | #include "vfs.h" |
@@ -186,12 +187,12 @@ static int nfsd_init_socks(int port) | |||
186 | if (!list_empty(&nfsd_serv->sv_permsocks)) | 187 | if (!list_empty(&nfsd_serv->sv_permsocks)) |
187 | return 0; | 188 | return 0; |
188 | 189 | ||
189 | error = svc_create_xprt(nfsd_serv, "udp", PF_INET, port, | 190 | error = svc_create_xprt(nfsd_serv, "udp", &init_net, PF_INET, port, |
190 | SVC_SOCK_DEFAULTS); | 191 | SVC_SOCK_DEFAULTS); |
191 | if (error < 0) | 192 | if (error < 0) |
192 | return error; | 193 | return error; |
193 | 194 | ||
194 | error = svc_create_xprt(nfsd_serv, "tcp", PF_INET, port, | 195 | error = svc_create_xprt(nfsd_serv, "tcp", &init_net, PF_INET, port, |
195 | SVC_SOCK_DEFAULTS); | 196 | SVC_SOCK_DEFAULTS); |
196 | if (error < 0) | 197 | if (error < 0) |
197 | return error; | 198 | return error; |