diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-02-16 20:16:27 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-02-28 18:26:40 +0300 |
commit | 37902c6313090235c847af89c5515591261ee338 (patch) | |
tree | 46f3252edaf5eb5beba096f2422221a8ba208d27 /fs/lockd | |
parent | f49169c97fceb21ad6a0aaf671c50b0f520f15a5 (diff) | |
download | linux-37902c6313090235c847af89c5515591261ee338.tar.xz |
NFSD: Move svc_serv_ops::svo_function into struct svc_serv
Hoist svo_function back into svc_serv and remove struct
svc_serv_ops, since the struct is now devoid of fields.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/svc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index bfde31124f3a..59ef8a1f843f 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -349,10 +349,6 @@ static struct notifier_block lockd_inet6addr_notifier = { }; #endif -static const struct svc_serv_ops lockd_sv_ops = { - .svo_function = lockd, -}; - static int lockd_get(void) { struct svc_serv *serv; @@ -376,7 +372,7 @@ static int lockd_get(void) nlm_timeout = LOCKD_DFLT_TIMEO; nlmsvc_timeout = nlm_timeout * HZ; - serv = svc_create(&nlmsvc_program, LOCKD_BUFSIZE, &lockd_sv_ops); + serv = svc_create(&nlmsvc_program, LOCKD_BUFSIZE, lockd); if (!serv) { printk(KERN_WARNING "lockd_up: create service failed\n"); return -ENOMEM; |