diff options
author | David Howells <dhowells@redhat.com> | 2006-08-22 20:06:12 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:36 -0400 |
commit | 5006a76cca8f86c6975c16fcf67e83b8b0eee2b6 (patch) | |
tree | fbe711871729ddfc921e91ba86202a15c5a1a55f /include/linux/nfs_fs_sb.h | |
parent | 8fa5c000d7f986ef9cdc6d95f9f7fcee20e0a7d6 (diff) |
NFS: Eliminate client_sys in favour of cl_rpcclient
Eliminate nfs_server::client_sys in favour of nfs_client::cl_rpcclient as we
only really need one per server that we're talking to since it doesn't have any
security on it.
The retransmission management variables are also moved to the common struct as
they're required to set up the cl_rpcclient connection.
The NFS2/3 client and client_acl connections are thenceforth derived by cloning
the cl_rpcclient connection and post-applying the authorisation flavour.
The code for setting up the initial common connection has been moved to
client.c as nfs_create_rpc_client(). All the NFS program definition tables are
also moved there as that's where they're now required rather than super.c.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs_sb.h')
-rw-r--r-- | include/linux/nfs_fs_sb.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index aae7c117597a..d404ceca9168 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
@@ -26,6 +26,8 @@ struct nfs_client { | |||
26 | 26 | ||
27 | struct rpc_clnt * cl_rpcclient; | 27 | struct rpc_clnt * cl_rpcclient; |
28 | const struct nfs_rpc_ops *rpc_ops; /* NFS protocol vector */ | 28 | const struct nfs_rpc_ops *rpc_ops; /* NFS protocol vector */ |
29 | unsigned long retrans_timeo; /* retransmit timeout */ | ||
30 | unsigned int retrans_count; /* number of retransmit tries */ | ||
29 | 31 | ||
30 | #ifdef CONFIG_NFS_V4 | 32 | #ifdef CONFIG_NFS_V4 |
31 | u64 cl_clientid; /* constant */ | 33 | u64 cl_clientid; /* constant */ |
@@ -73,7 +75,6 @@ struct nfs_client { | |||
73 | struct nfs_server { | 75 | struct nfs_server { |
74 | struct nfs_client * nfs_client; /* shared client and NFS4 state */ | 76 | struct nfs_client * nfs_client; /* shared client and NFS4 state */ |
75 | struct rpc_clnt * client; /* RPC client handle */ | 77 | struct rpc_clnt * client; /* RPC client handle */ |
76 | struct rpc_clnt * client_sys; /* 2nd handle for FSINFO */ | ||
77 | struct rpc_clnt * client_acl; /* ACL RPC client handle */ | 78 | struct rpc_clnt * client_acl; /* ACL RPC client handle */ |
78 | struct nfs_iostats * io_stats; /* I/O statistics */ | 79 | struct nfs_iostats * io_stats; /* I/O statistics */ |
79 | struct backing_dev_info backing_dev_info; | 80 | struct backing_dev_info backing_dev_info; |
@@ -90,8 +91,6 @@ struct nfs_server { | |||
90 | unsigned int acregmax; | 91 | unsigned int acregmax; |
91 | unsigned int acdirmin; | 92 | unsigned int acdirmin; |
92 | unsigned int acdirmax; | 93 | unsigned int acdirmax; |
93 | unsigned long retrans_timeo; /* retransmit timeout */ | ||
94 | unsigned int retrans_count; /* number of retransmit tries */ | ||
95 | unsigned int namelen; | 94 | unsigned int namelen; |
96 | char * hostname; /* remote hostname */ | 95 | char * hostname; /* remote hostname */ |
97 | struct nfs_fh fh; | 96 | struct nfs_fh fh; |