Lines Matching refs:new_tbl

214 	struct bucket_table *new_tbl;  in rhashtable_last_table()  local
217 new_tbl = tbl; in rhashtable_last_table()
221 return new_tbl; in rhashtable_last_table()
229 struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl); in rhashtable_rehash_one() local
236 if (new_tbl->nest) in rhashtable_rehash_one()
255 new_hash = head_hashfn(ht, new_tbl, entry); in rhashtable_rehash_one()
257 flags = rht_lock_nested(new_tbl, &new_tbl->buckets[new_hash], in rhashtable_rehash_one()
260 head = rht_ptr(new_tbl->buckets + new_hash, new_tbl, new_hash); in rhashtable_rehash_one()
264 rht_assign_unlock(new_tbl, &new_tbl->buckets[new_hash], entry, flags); in rhashtable_rehash_one()
300 struct bucket_table *new_tbl) in rhashtable_rehash_attach() argument
309 new_tbl) != NULL) in rhashtable_rehash_attach()
318 struct bucket_table *new_tbl; in rhashtable_rehash_table() local
323 new_tbl = rht_dereference(old_tbl->future_tbl, ht); in rhashtable_rehash_table()
324 if (!new_tbl) in rhashtable_rehash_table()
335 rcu_assign_pointer(ht->tbl, new_tbl); in rhashtable_rehash_table()
351 return rht_dereference(new_tbl->future_tbl, ht) ? -EAGAIN : 0; in rhashtable_rehash_table()
358 struct bucket_table *new_tbl; in rhashtable_rehash_alloc() local
363 new_tbl = bucket_table_alloc(ht, size, GFP_KERNEL); in rhashtable_rehash_alloc()
364 if (new_tbl == NULL) in rhashtable_rehash_alloc()
367 err = rhashtable_rehash_attach(ht, old_tbl, new_tbl); in rhashtable_rehash_alloc()
369 bucket_table_free(new_tbl); in rhashtable_rehash_alloc()
446 struct bucket_table *new_tbl; in rhashtable_insert_rehash() local
464 new_tbl = bucket_table_alloc(ht, size, GFP_ATOMIC | __GFP_NOWARN); in rhashtable_insert_rehash()
465 if (new_tbl == NULL) in rhashtable_insert_rehash()
468 err = rhashtable_rehash_attach(ht, tbl, new_tbl); in rhashtable_insert_rehash()
470 bucket_table_free(new_tbl); in rhashtable_insert_rehash()
546 struct bucket_table *new_tbl; in rhashtable_insert_one() local
555 new_tbl = rht_dereference_rcu(tbl->future_tbl, ht); in rhashtable_insert_one()
556 if (new_tbl) in rhashtable_insert_one()
557 return new_tbl; in rhashtable_insert_one()
593 struct bucket_table *new_tbl; in rhashtable_try_insert() local
600 new_tbl = rcu_dereference(ht->tbl); in rhashtable_try_insert()
603 tbl = new_tbl; in rhashtable_try_insert()
611 new_tbl = rht_dereference_rcu(tbl->future_tbl, ht); in rhashtable_try_insert()
617 new_tbl = rhashtable_insert_one(ht, bkt, tbl, in rhashtable_try_insert()
619 if (PTR_ERR(new_tbl) != -EEXIST) in rhashtable_try_insert()
620 data = ERR_CAST(new_tbl); in rhashtable_try_insert()
624 } while (!IS_ERR_OR_NULL(new_tbl)); in rhashtable_try_insert()