Lines Matching refs:old_tbl
232 struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_rehash_one() local
233 struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl); in rhashtable_rehash_one()
245 rht_for_each_from(entry, rht_ptr(bkt, old_tbl, old_hash), in rhashtable_rehash_one()
246 old_tbl, old_hash) { in rhashtable_rehash_one()
248 next = rht_dereference_bucket(entry->next, old_tbl, old_hash); in rhashtable_rehash_one()
283 struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_rehash_chain() local
284 struct rhash_lock_head __rcu **bkt = rht_bucket_var(old_tbl, old_hash); in rhashtable_rehash_chain()
290 flags = rht_lock(old_tbl, bkt); in rhashtable_rehash_chain()
297 rht_unlock(old_tbl, bkt, flags); in rhashtable_rehash_chain()
303 struct bucket_table *old_tbl, in rhashtable_rehash_attach() argument
312 if (cmpxchg((struct bucket_table **)&old_tbl->future_tbl, NULL, in rhashtable_rehash_attach()
321 struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_rehash_table() local
327 new_tbl = rht_dereference(old_tbl->future_tbl, ht); in rhashtable_rehash_table()
331 for (old_hash = 0; old_hash < old_tbl->size; old_hash++) { in rhashtable_rehash_table()
342 list_for_each_entry(walker, &old_tbl->walkers, list) in rhashtable_rehash_table()
352 call_rcu(&old_tbl->rcu, bucket_table_free_rcu); in rhashtable_rehash_table()
359 struct bucket_table *old_tbl, in rhashtable_rehash_alloc() argument
371 err = rhashtable_rehash_attach(ht, old_tbl, new_tbl); in rhashtable_rehash_alloc()
396 struct bucket_table *old_tbl = rht_dereference(ht->tbl, ht); in rhashtable_shrink() local
405 if (old_tbl->size <= size) in rhashtable_shrink()
408 if (rht_dereference(old_tbl->future_tbl, ht)) in rhashtable_shrink()
411 return rhashtable_rehash_alloc(ht, old_tbl, size); in rhashtable_shrink()
449 struct bucket_table *old_tbl; in rhashtable_insert_rehash() local
454 old_tbl = rht_dereference_rcu(ht->tbl, ht); in rhashtable_insert_rehash()
463 else if (old_tbl != tbl) in rhashtable_insert_rehash()