diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-06-03 16:53:11 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-07-06 20:14:44 -0400 |
commit | ec757e423b4fcd6e5ea4405d1e8243c040458d78 (patch) | |
tree | 882614f26ef2218868c92a90bb5fc2f89c823451 /fs/lockd | |
parent | 3049e974a7c7cfa0c15fb807f4a3e75b2ab8517a (diff) | |
download | linux-ec757e423b4fcd6e5ea4405d1e8243c040458d78.tar.bz2 |
lockd: Update the NLMv4 void results encoder 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/lockd')
-rw-r--r-- | fs/lockd/xdr4.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/fs/lockd/xdr4.c b/fs/lockd/xdr4.c index 6c5383bef2bf..0db142e203d2 100644 --- a/fs/lockd/xdr4.c +++ b/fs/lockd/xdr4.c @@ -324,6 +324,17 @@ nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p) return 1; } + +/* + * Encode Reply results + */ + +int +nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) +{ + return 1; +} + int nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p) { @@ -356,9 +367,3 @@ nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p) *p++ = resp->status; return xdr_ressize_check(rqstp, p); } - -int -nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) -{ - return xdr_ressize_check(rqstp, p); -} |