summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2004-02-07 16:50:51 +0100
committerTrond Myklebust <trond.myklebust@fys.uio.no>2004-02-07 16:50:51 +0100
commitc2f2ea78e058ca74fe2e674fd8cdfb71966b248c (patch)
tree6c080d2e2dbd58d449d9d4b2cd3acf065255c7dc /include/linux
parent8d51075e1a0b96f9b787df3e851fec5c9bb2ba4a (diff)
NFSv4/RPCSEC_GSS: Make Frank's server->client_sys feature use
RPC cloning in order to avoid duplicating sockets etc. Make NFSv4 share a single socket for all communication to the same server.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 5ae592b26d63..1ba074302796 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -489,6 +489,14 @@ struct nfs4_client {
int cl_nunused;
spinlock_t cl_lock;
atomic_t cl_count;
+
+ struct rpc_clnt * cl_rpcclient;
+ struct rpc_cred * cl_cred;
+
+ /* Our own IP address, as a null-terminated string.
+ * This is used to generate the clientid, and the callback address.
+ */
+ char cl_ipaddr[16];
};
/*
@@ -558,13 +566,6 @@ extern void nfs4_increment_seqid(u32 status, struct nfs4_state_owner *sp);
struct nfs4_mount_data;
-static inline int
-create_nfsv4_state(struct nfs_server *server, struct nfs4_mount_data *data)
-{
- server->nfs4_state = NULL;
- return 0;
-}
-
static inline void
destroy_nfsv4_state(struct nfs_server *server)
{