aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-08-22 20:06:12 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:35 -0400
commit8fa5c000d7f986ef9cdc6d95f9f7fcee20e0a7d6 (patch)
tree356b811803db9775fd9c870d189a9ff75885ae6c /include/linux
parent1f163415dc05983830bcc47b33c155b2528b1574 (diff)
NFS: Move rpc_ops from nfs_server to nfs_client
Move the rpc_ops from the nfs_server struct to the nfs_client struct as they're common to all server records of a particular NFS protocol version. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h2
-rw-r--r--include/linux/nfs_fs_sb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 70e1dc9162e2..51e9bd90dedc 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -215,7 +215,7 @@ static inline struct nfs_inode *NFS_I(struct inode *inode)
215#define NFS_FH(inode) (&NFS_I(inode)->fh) 215#define NFS_FH(inode) (&NFS_I(inode)->fh)
216#define NFS_SERVER(inode) (NFS_SB(inode->i_sb)) 216#define NFS_SERVER(inode) (NFS_SB(inode->i_sb))
217#define NFS_CLIENT(inode) (NFS_SERVER(inode)->client) 217#define NFS_CLIENT(inode) (NFS_SERVER(inode)->client)
218#define NFS_PROTO(inode) (NFS_SERVER(inode)->rpc_ops) 218#define NFS_PROTO(inode) (NFS_SERVER(inode)->nfs_client->rpc_ops)
219#define NFS_ADDR(inode) (RPC_PEERADDR(NFS_CLIENT(inode))) 219#define NFS_ADDR(inode) (RPC_PEERADDR(NFS_CLIENT(inode)))
220#define NFS_COOKIEVERF(inode) (NFS_I(inode)->cookieverf) 220#define NFS_COOKIEVERF(inode) (NFS_I(inode)->cookieverf)
221#define NFS_READTIME(inode) (NFS_I(inode)->read_cache_jiffies) 221#define NFS_READTIME(inode) (NFS_I(inode)->read_cache_jiffies)
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index e7d7662f51fd..aae7c117597a 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -25,6 +25,7 @@ struct nfs_client {
25 struct list_head cl_superblocks; /* List of nfs_server structs */ 25 struct list_head cl_superblocks; /* List of nfs_server structs */
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 29
29#ifdef CONFIG_NFS_V4 30#ifdef CONFIG_NFS_V4
30 u64 cl_clientid; /* constant */ 31 u64 cl_clientid; /* constant */
@@ -74,7 +75,6 @@ struct nfs_server {
74 struct rpc_clnt * client; /* RPC client handle */ 75 struct rpc_clnt * client; /* RPC client handle */
75 struct rpc_clnt * client_sys; /* 2nd handle for FSINFO */ 76 struct rpc_clnt * client_sys; /* 2nd handle for FSINFO */
76 struct rpc_clnt * client_acl; /* ACL RPC client handle */ 77 struct rpc_clnt * client_acl; /* ACL RPC client handle */
77 const struct nfs_rpc_ops *rpc_ops; /* NFS protocol vector */
78 struct nfs_iostats * io_stats; /* I/O statistics */ 78 struct nfs_iostats * io_stats; /* I/O statistics */
79 struct backing_dev_info backing_dev_info; 79 struct backing_dev_info backing_dev_info;
80 int flags; /* various flags */ 80 int flags; /* various flags */