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 @@ -299,6 +299,20 @@ nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p)
299
299
return 1 ;
300
300
}
301
301
302
+ int
303
+ nlmsvc_decode_res (struct svc_rqst * rqstp , __be32 * p )
304
+ {
305
+ struct xdr_stream * xdr = & rqstp -> rq_arg_stream ;
306
+ struct nlm_res * resp = rqstp -> rq_argp ;
307
+
308
+ if (!svcxdr_decode_cookie (xdr , & resp -> cookie ))
309
+ return 0 ;
310
+ if (!svcxdr_decode_stats (xdr , & resp -> status ))
311
+ return 0 ;
312
+
313
+ return 1 ;
314
+ }
315
+
302
316
int
303
317
nlmsvc_encode_testres (struct svc_rqst * rqstp , __be32 * p )
304
318
{
@@ -379,17 +393,6 @@ nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p)
379
393
return xdr_argsize_check (rqstp , p );
380
394
}
381
395
382
- int
383
- nlmsvc_decode_res (struct svc_rqst * rqstp , __be32 * p )
384
- {
385
- struct nlm_res * resp = rqstp -> rq_argp ;
386
-
387
- if (!(p = nlm_decode_cookie (p , & resp -> cookie )))
388
- return 0 ;
389
- resp -> status = * p ++ ;
390
- return xdr_argsize_check (rqstp , p );
391
- }
392
-
393
396
int
394
397
nlmsvc_encode_void (struct svc_rqst * rqstp , __be32 * p )
395
398
{
You can’t perform that action at this time.
0 commit comments