Lines Matching refs:old_tbl

160 	struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht);  in rhashtable_rehash_one()  local
162 rht_dereference_rcu(old_tbl->future_tbl, ht)); in rhashtable_rehash_one()
163 struct rhash_head __rcu **pprev = &old_tbl->buckets[old_hash]; in rhashtable_rehash_one()
169 rht_for_each(entry, old_tbl, old_hash) { in rhashtable_rehash_one()
171 next = rht_dereference_bucket(entry->next, old_tbl, old_hash); in rhashtable_rehash_one()
204 struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_rehash_chain() local
207 old_bucket_lock = rht_bucket_lock(old_tbl, old_hash); in rhashtable_rehash_chain()
212 old_tbl->rehash++; in rhashtable_rehash_chain()
217 struct bucket_table *old_tbl, in rhashtable_rehash_attach() argument
221 spin_lock_bh(old_tbl->locks); in rhashtable_rehash_attach()
224 if (rcu_access_pointer(old_tbl->future_tbl)) { in rhashtable_rehash_attach()
225 spin_unlock_bh(old_tbl->locks); in rhashtable_rehash_attach()
232 rcu_assign_pointer(old_tbl->future_tbl, new_tbl); in rhashtable_rehash_attach()
237 spin_unlock_bh(old_tbl->locks); in rhashtable_rehash_attach()
244 struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_rehash_table() local
249 new_tbl = rht_dereference(old_tbl->future_tbl, ht); in rhashtable_rehash_table()
253 for (old_hash = 0; old_hash < old_tbl->size; old_hash++) in rhashtable_rehash_table()
260 list_for_each_entry(walker, &old_tbl->walkers, list) in rhashtable_rehash_table()
268 call_rcu(&old_tbl->rcu, bucket_table_free_rcu); in rhashtable_rehash_table()
290 struct bucket_table *new_tbl, *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_expand() local
295 old_tbl = rhashtable_last_table(ht, old_tbl); in rhashtable_expand()
297 new_tbl = bucket_table_alloc(ht, old_tbl->size * 2, GFP_KERNEL); in rhashtable_expand()
301 err = rhashtable_rehash_attach(ht, old_tbl, new_tbl); in rhashtable_expand()
326 struct bucket_table *new_tbl, *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_shrink() local
336 if (old_tbl->size <= size) in rhashtable_shrink()
339 if (rht_dereference(old_tbl->future_tbl, ht)) in rhashtable_shrink()
346 err = rhashtable_rehash_attach(ht, old_tbl, new_tbl); in rhashtable_shrink()
395 struct bucket_table *old_tbl; in rhashtable_insert_rehash() local
400 old_tbl = rht_dereference_rcu(ht->tbl, ht); in rhashtable_insert_rehash()
409 else if (old_tbl != tbl) in rhashtable_insert_rehash()