diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-05 14:48:29 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-11-30 14:46:35 -0500 |
commit | 788f7183fba86b46074c16e7d57ea09302badff4 (patch) | |
tree | 0c6421ae15a0ce3282b5c08a78791de902df94cc /fs/nfsd/nfsd.h | |
parent | 5191955d6fc65e6d4efe8f4f10a6028298f57281 (diff) | |
download | linux-788f7183fba86b46074c16e7d57ea09302badff4.tar.gz linux-788f7183fba86b46074c16e7d57ea09302badff4.tar.bz2 linux-788f7183fba86b46074c16e7d57ea09302badff4.zip |
NFSD: Add common helpers to decode void args and encode void results
Start off the conversion to xdr_stream by de-duplicating the functions
that decode void arguments and encode void results.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsd.h')
-rw-r--r-- | fs/nfsd/nfsd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nfsd/nfsd.h b/fs/nfsd/nfsd.h index cb742e17e04a..7907de3f2ee6 100644 --- a/fs/nfsd/nfsd.h +++ b/fs/nfsd/nfsd.h @@ -74,6 +74,14 @@ extern unsigned long nfsd_drc_mem_used; extern const struct seq_operations nfs_exports_op; /* + * Common void argument and result helpers + */ +struct nfsd_voidargs { }; +struct nfsd_voidres { }; +int nfssvc_decode_voidarg(struct svc_rqst *rqstp, __be32 *p); +int nfssvc_encode_voidres(struct svc_rqst *rqstp, __be32 *p); + +/* * Function prototypes. */ int nfsd_svc(int nrservs, struct net *net, const struct cred *cred); |