mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
9157c31dd6
commit
d2d7ce28a2
5 changed files with 15 additions and 76 deletions
|
@ -152,9 +152,9 @@ struct nfs_server {
|
|||
|
||||
/* the following fields are protected by nfs_client->cl_lock */
|
||||
struct rb_root state_owners;
|
||||
struct rb_root lockowner_id;
|
||||
#endif
|
||||
struct ida openowner_id;
|
||||
struct ida lockowner_id;
|
||||
struct list_head state_owners_lru;
|
||||
struct list_head layouts;
|
||||
struct list_head delegations;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue