summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfssvc.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-12-10 12:19:20 +0300
committerJ. Bruce Fields <bfields@redhat.com>2012-12-10 16:25:34 -0500
commit6777436b0f072fb20a025a73e9b67a35ad8a5451 (patch)
tree9d241fd4d995b0743752376ae5ebcf3757e6fd70 /fs/nfsd/nfssvc.c
parentdb42d1a76a8dfcaba7a2dc9c591fa4e231db22b3 (diff)
downloadlinux-stable-6777436b0f072fb20a025a73e9b67a35ad8a5451.tar.gz
linux-stable-6777436b0f072fb20a025a73e9b67a35ad8a5451.tar.bz2
linux-stable-6777436b0f072fb20a025a73e9b67a35ad8a5451.zip
nfsd: pass net to nfsd_create_serv()
Precursor patch. Hard-coded "init_net" will be replaced by proper one in future. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r--fs/nfsd/nfssvc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 21cba3d7c865..6448391cde54 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -334,10 +334,9 @@ static int nfsd_get_default_max_blksize(void)
return ret;
}
-int nfsd_create_serv(void)
+int nfsd_create_serv(struct net *net)
{
int error;
- struct net *net = &init_net;
WARN_ON(!mutex_is_locked(&nfsd_mutex));
if (nfsd_serv) {
@@ -459,7 +458,7 @@ nfsd_svc(int nrservs)
if (nrservs == 0 && nfsd_serv == NULL)
goto out;
- error = nfsd_create_serv();
+ error = nfsd_create_serv(net);
if (error)
goto out;