File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -349,24 +349,23 @@ nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p)
349
349
}
350
350
351
351
int
352
- nlmsvc_encode_shareres (struct svc_rqst * rqstp , __be32 * p )
352
+ nlmsvc_encode_res (struct svc_rqst * rqstp , __be32 * p )
353
353
{
354
+ struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
354
355
struct nlm_res * resp = rqstp -> rq_resp ;
355
356
356
- if (!(p = nlm_encode_cookie (p , & resp -> cookie )))
357
- return 0 ;
358
- * p ++ = resp -> status ;
359
- * p ++ = xdr_zero ; /* sequence argument */
360
- return xdr_ressize_check (rqstp , p );
357
+ return svcxdr_encode_cookie (xdr , & resp -> cookie ) &&
358
+ svcxdr_encode_stats (xdr , resp -> status );
361
359
}
362
360
363
361
int
364
- nlmsvc_encode_res (struct svc_rqst * rqstp , __be32 * p )
362
+ nlmsvc_encode_shareres (struct svc_rqst * rqstp , __be32 * p )
365
363
{
366
364
struct nlm_res * resp = rqstp -> rq_resp ;
367
365
368
366
if (!(p = nlm_encode_cookie (p , & resp -> cookie )))
369
367
return 0 ;
370
368
* p ++ = resp -> status ;
369
+ * p ++ = xdr_zero ; /* sequence argument */
371
370
return xdr_ressize_check (rqstp , p );
372
371
}
You can’t perform that action at this time.
0 commit comments