diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-06-03 16:52:16 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-07-06 20:14:43 -0400 |
commit | 7956521aac58e434a05cf3c68c1b66c1312e5649 (patch) | |
tree | 43d8f9f98442006f0c8e87d92e8966e55a2b5ce4 /fs | |
parent | 529ca3a116e8978575fec061a71fa6865a344891 (diff) |
lockd: Update the NLMv4 void arguments decoder to use struct xdr_stream
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/lockd/xdr4.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/fs/lockd/xdr4.c b/fs/lockd/xdr4.c index 5fa9f48a9dba..d0960a8551f8 100644 --- a/fs/lockd/xdr4.c +++ b/fs/lockd/xdr4.c @@ -18,6 +18,8 @@ #include <linux/sunrpc/stats.h> #include <linux/lockd/lockd.h> +#include "svcxdr.h" + #define NLMDBG_FACILITY NLMDBG_XDR static inline loff_t @@ -175,8 +177,15 @@ nlm4_encode_testres(__be32 *p, struct nlm_res *resp) /* - * First, the server side XDR functions + * Decode Call arguments */ + +int +nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p) +{ + return 1; +} + int nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) { @@ -337,12 +346,6 @@ nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p) } int -nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p) -{ - return xdr_argsize_check(rqstp, p); -} - -int nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) { return xdr_ressize_check(rqstp, p); |