File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,20 @@ nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p)
295
295
return 1 ;
296
296
}
297
297
298
+ int
299
+ nlm4svc_decode_res (struct svc_rqst * rqstp , __be32 * p )
300
+ {
301
+ struct xdr_stream * xdr = & rqstp -> rq_arg_stream ;
302
+ struct nlm_res * resp = rqstp -> rq_argp ;
303
+
304
+ if (!svcxdr_decode_cookie (xdr , & resp -> cookie ))
305
+ return 0 ;
306
+ if (!svcxdr_decode_stats (xdr , & resp -> status ))
307
+ return 0 ;
308
+
309
+ return 1 ;
310
+ }
311
+
298
312
int
299
313
nlm4svc_encode_testres (struct svc_rqst * rqstp , __be32 * p )
300
314
{
@@ -375,17 +389,6 @@ nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p)
375
389
return xdr_argsize_check (rqstp , p );
376
390
}
377
391
378
- int
379
- nlm4svc_decode_res (struct svc_rqst * rqstp , __be32 * p )
380
- {
381
- struct nlm_res * resp = rqstp -> rq_argp ;
382
-
383
- if (!(p = nlm4_decode_cookie (p , & resp -> cookie )))
384
- return 0 ;
385
- resp -> status = * p ++ ;
386
- return xdr_argsize_check (rqstp , p );
387
- }
388
-
389
392
int
390
393
nlm4svc_encode_void (struct svc_rqst * rqstp , __be32 * p )
391
394
{
You can’t perform that action at this time.
0 commit comments