mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] knfsd: lockd: make the hash chains use a hlist_node
Get rid of the home-grown singly linked lists for the nlm_host hash table. Signed-off-by: Olaf Kirch <okir@suse.de> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
9502c52259
commit
0cea32761a
2 changed files with 40 additions and 33 deletions
|
@ -37,7 +37,7 @@
|
|||
* Lockd host handle (used both by the client and server personality).
|
||||
*/
|
||||
struct nlm_host {
|
||||
struct nlm_host * h_next; /* linked list (hash table) */
|
||||
struct hlist_node h_hash; /* doubly linked list */
|
||||
struct sockaddr_in h_addr; /* peer address */
|
||||
struct rpc_clnt * h_rpcclnt; /* RPC client to talk to peer */
|
||||
char * h_name; /* remote hostname */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue