diff options
| author | Christoph Hellwig <hch@lst.de> | 2017-05-08 17:40:27 -0400 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2017-05-15 11:42:30 -0400 |
| commit | 7fd38af9cae6aef1dfd28a7d1bd214eb5ddb7d53 (patch) | |
| tree | 394d5e146fc57c81264231b0ee58e5a23379f6ea /include | |
| parent | eb69853da9459280d89876cfc3da11292e59f7af (diff) | |
sunrpc: move pc_count out of struct svc_procinfo
pc_count is the only writeable memeber of struct svc_procinfo, which is
a good candidate to be const-ified as it contains function pointers.
This patch moves it into out out struct svc_procinfo, and into a
separate writable array that is pointed to by struct svc_version.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sunrpc/svc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 6cfe41db7f31..9f00384153f4 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
| @@ -397,6 +397,7 @@ struct svc_version { | |||
| 397 | u32 vs_vers; /* version number */ | 397 | u32 vs_vers; /* version number */ |
| 398 | u32 vs_nproc; /* number of procedures */ | 398 | u32 vs_nproc; /* number of procedures */ |
| 399 | struct svc_procedure * vs_proc; /* per-procedure info */ | 399 | struct svc_procedure * vs_proc; /* per-procedure info */ |
| 400 | unsigned int *vs_count; /* call counts */ | ||
| 400 | u32 vs_xdrsize; /* xdrsize needed for this version */ | 401 | u32 vs_xdrsize; /* xdrsize needed for this version */ |
| 401 | 402 | ||
| 402 | /* Don't register with rpcbind */ | 403 | /* Don't register with rpcbind */ |
| @@ -429,7 +430,6 @@ struct svc_procedure { | |||
| 429 | void (*pc_release)(struct svc_rqst *); | 430 | void (*pc_release)(struct svc_rqst *); |
| 430 | unsigned int pc_argsize; /* argument struct size */ | 431 | unsigned int pc_argsize; /* argument struct size */ |
| 431 | unsigned int pc_ressize; /* result struct size */ | 432 | unsigned int pc_ressize; /* result struct size */ |
| 432 | unsigned int pc_count; /* call count */ | ||
| 433 | unsigned int pc_cachetype; /* cache info (NFS) */ | 433 | unsigned int pc_cachetype; /* cache info (NFS) */ |
| 434 | unsigned int pc_xdrressize; /* maximum size of XDR reply */ | 434 | unsigned int pc_xdrressize; /* maximum size of XDR reply */ |
| 435 | }; | 435 | }; |
