aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfssvc.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-12-10 04:19:25 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-12-10 16:25:34 -0500
commitd41a9417cd89a69f58a26935034b4264a2d882d6 (patch)
tree5de0008b23f22d0990211a5bc98833dad5a1d61e /fs/nfsd/nfssvc.c
parent6777436b0f072fb20a025a73e9b67a35ad8a5451 (diff)
nfsd: pass net to nfsd_svc()
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 6448391cde54..f199b537cc81 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -442,11 +442,10 @@ int nfsd_set_nrthreads(int n, int *nthreads)
442 * this is the first time nrservs is nonzero. 442 * this is the first time nrservs is nonzero.
443 */ 443 */
444int 444int
445nfsd_svc(int nrservs) 445nfsd_svc(int nrservs, struct net *net)
446{ 446{
447 int error; 447 int error;
448 bool nfsd_up_before; 448 bool nfsd_up_before;
449 struct net *net = &init_net;
450 449
451 mutex_lock(&nfsd_mutex); 450 mutex_lock(&nfsd_mutex);
452 dprintk("nfsd: creating service\n"); 451 dprintk("nfsd: creating service\n");