diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-29 16:03:50 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-01 17:18:54 -0400 |
commit | fc5d00b04a3a58cac8620403dfe9f43f72578ec1 (patch) | |
tree | 3a8b9a5ae3456b5846fb64c0a74c9389998b3e18 /fs/nfsd/nfssvc.c | |
parent | e204e621b4160c802315bc2d0fa335337c0d62e8 (diff) | |
download | kernel-common-fc5d00b04a3a58cac8620403dfe9f43f72578ec1.tar.gz kernel-common-fc5d00b04a3a58cac8620403dfe9f43f72578ec1.tar.bz2 kernel-common-fc5d00b04a3a58cac8620403dfe9f43f72578ec1.zip |
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/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ #include <linux/lockd/bind.h> #include <linux/nfsacl.h> #include <linux/seq_file.h> +#include <net/net_namespace.h> #include "nfsd.h" #include "cache.h" #include "vfs.h" @@ -186,12 +187,12 @@ static int nfsd_init_socks(int port) if (!list_empty(&nfsd_serv->sv_permsocks)) return 0; - error = svc_create_xprt(nfsd_serv, "udp", PF_INET, port, + error = svc_create_xprt(nfsd_serv, "udp", &init_net, PF_INET, port, SVC_SOCK_DEFAULTS); if (error < 0) return error; - error = svc_create_xprt(nfsd_serv, "tcp", PF_INET, port, + error = svc_create_xprt(nfsd_serv, "tcp", &init_net, PF_INET, port, SVC_SOCK_DEFAULTS); if (error < 0) return error; |