diff options
author | NeilBrown <neilb@suse.de> | 2010-08-12 03:04:08 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-09-21 21:51:11 -0400 |
commit | 1117449276bb909b029ed0b9ba13f53e4784db9d (patch) | |
tree | 14b119924ac54165e6b18f3772cfe966b6883245 /include/linux/sunrpc/cache.h | |
parent | 2ed5282cd9b44686a6e718269abb5c5cd332d8f1 (diff) |
sunrpc/cache: change deferred-request hash table to use hlist.
Being a hash table, hlist is the best option.
There is currently some ugliness were we treat "->next == NULL" as
a special case to avoid having to initialise the whole array.
This change nicely gets rid of that case.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/cache.h')
-rw-r--r-- | include/linux/sunrpc/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 52a7d7224e90..03496357f455 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
@@ -133,7 +133,7 @@ struct cache_req { | |||
133 | * delayed awaiting cache-fill | 133 | * delayed awaiting cache-fill |
134 | */ | 134 | */ |
135 | struct cache_deferred_req { | 135 | struct cache_deferred_req { |
136 | struct list_head hash; /* on hash chain */ | 136 | struct hlist_node hash; /* on hash chain */ |
137 | struct list_head recent; /* on fifo */ | 137 | struct list_head recent; /* on fifo */ |
138 | struct cache_head *item; /* cache item we wait on */ | 138 | struct cache_head *item; /* cache item we wait on */ |
139 | void *owner; /* we might need to discard all defered requests | 139 | void *owner; /* we might need to discard all defered requests |