Skip to content

Commit

Permalink
lockd: Update the NLMv4 void arguments decoder to use struct xdr_stream
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
chucklever authored and J. Bruce Fields committed Jul 7, 2021
1 parent 529ca3a commit 7956521
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions fs/lockd/xdr4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -336,12 +345,6 @@ nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p)
return xdr_argsize_check(rqstp, 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)
{
Expand Down

0 comments on commit 7956521

Please sign in to comment.