Skip to content

Commit e26ec89

Browse files
chuckleverJ. Bruce Fields
authored andcommitted
lockd: Update the NLMv1 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 14e1052 commit e26ec89

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

fs/lockd/xdr.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,17 @@ nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p)
331331
return 1;
332332
}
333333

334+
335+
/*
336+
* Encode Reply results
337+
*/
338+
339+
int
340+
nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p)
341+
{
342+
return 1;
343+
}
344+
334345
int
335346
nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p)
336347
{
@@ -363,9 +374,3 @@ nlmsvc_encode_res(struct svc_rqst *rqstp, __be32 *p)
363374
*p++ = resp->status;
364375
return xdr_ressize_check(rqstp, p);
365376
}
366-
367-
int
368-
nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p)
369-
{
370-
return xdr_ressize_check(rqstp, p);
371-
}

0 commit comments

Comments
 (0)