summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfssvc.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-12-10 12:19:25 +0300
committerJ. Bruce Fields <bfields@redhat.com>2012-12-10 16:25:34 -0500
commitd41a9417cd89a69f58a26935034b4264a2d882d6 (patch)
tree5de0008b23f22d0990211a5bc98833dad5a1d61e /fs/nfsd/nfssvc.c
parent6777436b0f072fb20a025a73e9b67a35ad8a5451 (diff)
downloadop-kernel-dev-d41a9417cd89a69f58a26935034b4264a2d882d6.zip
op-kernel-dev-d41a9417cd89a69f58a26935034b4264a2d882d6.tar.gz
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 6448391..f199b53 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -442,11 +442,10 @@ int nfsd_set_nrthreads(int n, int *nthreads)
* this is the first time nrservs is nonzero.
*/
int
-nfsd_svc(int nrservs)
+nfsd_svc(int nrservs, struct net *net)
{
int error;
bool nfsd_up_before;
- struct net *net = &init_net;
mutex_lock(&nfsd_mutex);
dprintk("nfsd: creating service\n");
OpenPOWER on IntegriCloud