diff options
Diffstat (limited to 'include/linux/rhashtable.h')
-rw-r--r-- | include/linux/rhashtable.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h index ae26c494e230..99f2e49a8a07 100644 --- a/include/linux/rhashtable.h +++ b/include/linux/rhashtable.h | |||
@@ -136,12 +136,10 @@ struct rhashtable_params { | |||
136 | * @run_work: Deferred worker to expand/shrink asynchronously | 136 | * @run_work: Deferred worker to expand/shrink asynchronously |
137 | * @mutex: Mutex to protect current/future table swapping | 137 | * @mutex: Mutex to protect current/future table swapping |
138 | * @lock: Spin lock to protect walker list | 138 | * @lock: Spin lock to protect walker list |
139 | * @being_destroyed: True if table is set up for destruction | ||
140 | */ | 139 | */ |
141 | struct rhashtable { | 140 | struct rhashtable { |
142 | struct bucket_table __rcu *tbl; | 141 | struct bucket_table __rcu *tbl; |
143 | atomic_t nelems; | 142 | atomic_t nelems; |
144 | bool being_destroyed; | ||
145 | unsigned int key_len; | 143 | unsigned int key_len; |
146 | unsigned int elasticity; | 144 | unsigned int elasticity; |
147 | struct rhashtable_params p; | 145 | struct rhashtable_params p; |
@@ -334,6 +332,9 @@ int rhashtable_walk_start(struct rhashtable_iter *iter) __acquires(RCU); | |||
334 | void *rhashtable_walk_next(struct rhashtable_iter *iter); | 332 | void *rhashtable_walk_next(struct rhashtable_iter *iter); |
335 | void rhashtable_walk_stop(struct rhashtable_iter *iter) __releases(RCU); | 333 | void rhashtable_walk_stop(struct rhashtable_iter *iter) __releases(RCU); |
336 | 334 | ||
335 | void rhashtable_free_and_destroy(struct rhashtable *ht, | ||
336 | void (*free_fn)(void *ptr, void *arg), | ||
337 | void *arg); | ||
337 | void rhashtable_destroy(struct rhashtable *ht); | 338 | void rhashtable_destroy(struct rhashtable *ht); |
338 | 339 | ||
339 | #define rht_dereference(p, ht) \ | 340 | #define rht_dereference(p, ht) \ |