Skip to content

Commit ec757e4

Browse files
chuckleverJ. Bruce Fields
authored andcommitted
lockd: Update the NLMv4 void results encoder to use struct xdr_stream
Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 3049e97 commit ec757e4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

fs/lockd/xdr4.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,17 @@ nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p)
324324
return 1;
325325
}
326326

327+
328+
/*
329+
* Encode Reply results
330+
*/
331+
332+
int
333+
nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p)
334+
{
335+
return 1;
336+
}
337+
327338
int
328339
nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p)
329340
{
@@ -356,9 +367,3 @@ nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p)
356367
*p++ = resp->status;
357368
return xdr_ressize_check(rqstp, p);
358369
}
359-
360-
int
361-
nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p)
362-
{
363-
return xdr_ressize_check(rqstp, p);
364-
}

0 commit comments

Comments
 (0)