diff options
author | 2021-11-29 15:51:25 +1100 | |
---|---|---|
committer | 2021-12-13 13:42:50 -0500 | |
commit | df5e49c880ea0776806b8a9f8ab95e035272cf6f (patch) | |
tree | 57020650034662cd4daa43163b5e06403b801997 /include/linux/sunrpc | |
parent | NFSD: handle errors better in write_ports_addfd() (diff) | |
download | linux-df5e49c880ea0776806b8a9f8ab95e035272cf6f.tar.gz linux-df5e49c880ea0776806b8a9f8ab95e035272cf6f.tar.bz2 linux-df5e49c880ea0776806b8a9f8ab95e035272cf6f.zip |
SUNRPC: change svc_get() to return the svc.
It is common for 'get' functions to return the object that was 'got',
and there are a couple of places where users of svc_get() would be a
little simpler if svc_get() did that.
Make it so.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 0ae28ae6caf2..5d9568953fcd 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -120,9 +120,10 @@ struct svc_serv { * change the number of threads. Horrible, but there it is. * Should be called with the "service mutex" held. */ -static inline void svc_get(struct svc_serv *serv) +static inline struct svc_serv *svc_get(struct svc_serv *serv) { serv->sv_nrthreads++; + return serv; } /* |