diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-17 22:04:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 18:20:28 -0500 |
commit | d2d7ce28a2f8ec6ca2a49145e643d2e3c7d21ba3 (patch) | |
tree | 4c73f071c2282185402a4da7d20b30749530c89f /fs/nfs/nfs4_fs.h | |
parent | 9157c31dd610a127bc6f01bc1953cf8b80382040 (diff) |
NFSv4: Replace lock_owner->ld_id with an ida based allocator
Again, We're unlikely to ever need more than 2^31 simultaneous lock
owners, so let's replace the custom allocator.
Now that there are no more users, we can also get rid of the custom
allocator code.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 091b679747ed..b23cb0cda632 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -81,11 +81,6 @@ static inline void nfs_confirm_seqid(struct nfs_seqid_counter *seqid, int status | |||
81 | seqid->flags |= NFS_SEQID_CONFIRMED; | 81 | seqid->flags |= NFS_SEQID_CONFIRMED; |
82 | } | 82 | } |
83 | 83 | ||
84 | struct nfs_unique_id { | ||
85 | struct rb_node rb_node; | ||
86 | __u64 id; | ||
87 | }; | ||
88 | |||
89 | /* | 84 | /* |
90 | * NFS4 state_owners and lock_owners are simply labels for ordered | 85 | * NFS4 state_owners and lock_owners are simply labels for ordered |
91 | * sequences of RPC calls. Their sole purpose is to provide once-only | 86 | * sequences of RPC calls. Their sole purpose is to provide once-only |
@@ -145,9 +140,9 @@ struct nfs4_lock_state { | |||
145 | struct nfs4_state * ls_state; /* Pointer to open state */ | 140 | struct nfs4_state * ls_state; /* Pointer to open state */ |
146 | #define NFS_LOCK_INITIALIZED 1 | 141 | #define NFS_LOCK_INITIALIZED 1 |
147 | int ls_flags; | 142 | int ls_flags; |
143 | int ls_id; | ||
148 | struct nfs_seqid_counter ls_seqid; | 144 | struct nfs_seqid_counter ls_seqid; |
149 | struct rpc_sequence ls_sequence; | 145 | struct rpc_sequence ls_sequence; |
150 | struct nfs_unique_id ls_id; | ||
151 | nfs4_stateid ls_stateid; | 146 | nfs4_stateid ls_stateid; |
152 | atomic_t ls_count; | 147 | atomic_t ls_count; |
153 | struct nfs4_lock_owner ls_owner; | 148 | struct nfs4_lock_owner ls_owner; |