mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
eb69853da9
commit
7fd38af9ca
10 changed files with 28 additions and 7 deletions
|
@ -397,6 +397,7 @@ struct svc_version {
|
|||
u32 vs_vers; /* version number */
|
||||
u32 vs_nproc; /* number of procedures */
|
||||
struct svc_procedure * vs_proc; /* per-procedure info */
|
||||
unsigned int *vs_count; /* call counts */
|
||||
u32 vs_xdrsize; /* xdrsize needed for this version */
|
||||
|
||||
/* Don't register with rpcbind */
|
||||
|
@ -429,7 +430,6 @@ struct svc_procedure {
|
|||
void (*pc_release)(struct svc_rqst *);
|
||||
unsigned int pc_argsize; /* argument struct size */
|
||||
unsigned int pc_ressize; /* result struct size */
|
||||
unsigned int pc_count; /* call count */
|
||||
unsigned int pc_cachetype; /* cache info (NFS) */
|
||||
unsigned int pc_xdrressize; /* maximum size of XDR reply */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue