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 @@ -344,24 +344,23 @@ nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p)
344
344
}
345
345
346
346
int
347
- nlm4svc_encode_shareres (struct svc_rqst * rqstp , __be32 * p )
347
+ nlm4svc_encode_res (struct svc_rqst * rqstp , __be32 * p )
348
348
{
349
+ struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
349
350
struct nlm_res * resp = rqstp -> rq_resp ;
350
351
351
- if (!(p = nlm4_encode_cookie (p , & resp -> cookie )))
352
- return 0 ;
353
- * p ++ = resp -> status ;
354
- * p ++ = xdr_zero ; /* sequence argument */
355
- return xdr_ressize_check (rqstp , p );
352
+ return svcxdr_encode_cookie (xdr , & resp -> cookie ) &&
353
+ svcxdr_encode_stats (xdr , resp -> status );
356
354
}
357
355
358
356
int
359
- nlm4svc_encode_res (struct svc_rqst * rqstp , __be32 * p )
357
+ nlm4svc_encode_shareres (struct svc_rqst * rqstp , __be32 * p )
360
358
{
361
359
struct nlm_res * resp = rqstp -> rq_resp ;
362
360
363
361
if (!(p = nlm4_encode_cookie (p , & resp -> cookie )))
364
362
return 0 ;
365
363
* p ++ = resp -> status ;
364
+ * p ++ = xdr_zero ; /* sequence argument */
366
365
return xdr_ressize_check (rqstp , p );
367
366
}
You can’t perform that action at this time.
0 commit comments