aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-17 22:04:24 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 18:20:28 -0500
commit9157c31dd610a127bc6f01bc1953cf8b80382040 (patch)
tree0552a17b2f047da4240a62d06b9fe58b162bad35 /fs/nfs/nfs4_fs.h
parentd1e284d50a1506aab8ad7895f31b5f93b5647fc9 (diff)
NFSv4: Replace state_owner->so_owner_id with an ida based allocator
We're unlikely to ever need more than 2^31 simultaneous open owners, so let's replace the custom allocator with the generic ida allocator. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 654b091644c5..091b679747ed 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -92,7 +92,6 @@ struct nfs_unique_id {
92 * semantics by allowing the server to identify replayed requests. 92 * semantics by allowing the server to identify replayed requests.
93 */ 93 */
94struct nfs4_state_owner { 94struct nfs4_state_owner {
95 struct nfs_unique_id so_owner_id;
96 struct nfs_server *so_server; 95 struct nfs_server *so_server;
97 struct list_head so_lru; 96 struct list_head so_lru;
98 unsigned long so_expires; 97 unsigned long so_expires;
@@ -106,6 +105,7 @@ struct nfs4_state_owner {
106 struct list_head so_states; 105 struct list_head so_states;
107 struct nfs_seqid_counter so_seqid; 106 struct nfs_seqid_counter so_seqid;
108 struct rpc_sequence so_sequence; 107 struct rpc_sequence so_sequence;
108 int so_owner_id;
109}; 109};
110 110
111enum { 111enum {