diff options
author | Jeff Layton <jlayton@primarydata.com> | 2015-06-08 21:05:56 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-08-10 22:05:41 +0200 |
commit | 758f62fff9ad630f05866a1dd6ae9453a7730c2e (patch) | |
tree | 07bf53619da925bc2b74e6365b9fff5ce0cd906d /fs | |
parent | nfsd/sunrpc: move sv_function into sv_ops (diff) | |
download | linux-758f62fff9ad630f05866a1dd6ae9453a7730c2e.tar.xz linux-758f62fff9ad630f05866a1dd6ae9453a7730c2e.zip |
nfsd/sunrpc: move sv_module parm into sv_ops
...not technically an operation, but it's more convenient and cleaner
to pass the module pointer in this struct.
Signed-off-by: Shirley Ma <shirley.ma@oracle.com>
Acked-by: Jeff Layton <jlayton@primarydata.com>
Tested-by: Shirley Ma <shirley.ma@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfssvc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index bd03968363ff..17ceaad5f80a 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -394,6 +394,7 @@ static int nfsd_get_default_max_blksize(void) static struct svc_serv_ops nfsd_sv_ops = { .svo_shutdown = nfsd_last_thread, .svo_function = nfsd, + .svo_module = THIS_MODULE, }; int nfsd_create_serv(struct net *net) @@ -410,7 +411,7 @@ int nfsd_create_serv(struct net *net) nfsd_max_blksize = nfsd_get_default_max_blksize(); nfsd_reset_versions(); nn->nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, - &nfsd_sv_ops, THIS_MODULE); + &nfsd_sv_ops); if (nn->nfsd_serv == NULL) return -ENOMEM; |