]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sunrpc: move p_count out of struct rpc_procinfo
authorChristoph Hellwig <hch@lst.de>
Mon, 8 May 2017 21:27:10 +0000 (23:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 May 2017 15:42:18 +0000 (17:42 +0200)
commit1c5876ddbdb401f814ef717394826e7dfb6704d4
tree225ae8fa49b447a2c7ace97f861031c7230ff76f
parentcdfa31e93fd228e197cc5bb31f0156117cea2156
sunrpc: move p_count out of struct rpc_procinfo

p_count is the only writeable memeber of struct rpc_procinfo, which is
a good candidate to be const-ified as it contains function pointers.

This patch moves it into out out struct rpc_procinfo, and into a
separate writable array that is pointed to by struct rpc_version and
indexed by p_statidx.

Signed-off-by: Christoph Hellwig <hch@lst.de>
13 files changed:
fs/lockd/clnt4xdr.c
fs/lockd/clntxdr.c
fs/lockd/mon.c
fs/nfs/mount_clnt.c
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c
fs/nfsd/nfs4callback.c
include/linux/sunrpc/clnt.h
net/sunrpc/auth_gss/gss_rpc_upcall.c
net/sunrpc/clnt.c
net/sunrpc/rpcb_clnt.c
net/sunrpc/stats.c