Lines Matching refs:new_tbl
218 struct bucket_table *new_tbl; in rhashtable_last_table() local
221 new_tbl = tbl; in rhashtable_last_table()
225 return new_tbl; in rhashtable_last_table()
233 struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl); in rhashtable_rehash_one() local
240 if (new_tbl->nest) in rhashtable_rehash_one()
259 new_hash = head_hashfn(ht, new_tbl, entry); in rhashtable_rehash_one()
261 flags = rht_lock_nested(new_tbl, &new_tbl->buckets[new_hash], in rhashtable_rehash_one()
264 head = rht_ptr(new_tbl->buckets + new_hash, new_tbl, new_hash); in rhashtable_rehash_one()
268 rht_assign_unlock(new_tbl, &new_tbl->buckets[new_hash], entry, flags); in rhashtable_rehash_one()
304 struct bucket_table *new_tbl) in rhashtable_rehash_attach() argument
313 new_tbl) != NULL) in rhashtable_rehash_attach()
322 struct bucket_table *new_tbl; in rhashtable_rehash_table() local
327 new_tbl = rht_dereference(old_tbl->future_tbl, ht); in rhashtable_rehash_table()
328 if (!new_tbl) in rhashtable_rehash_table()
339 rcu_assign_pointer(ht->tbl, new_tbl); in rhashtable_rehash_table()
355 return rht_dereference(new_tbl->future_tbl, ht) ? -EAGAIN : 0; in rhashtable_rehash_table()
362 struct bucket_table *new_tbl; in rhashtable_rehash_alloc() local
367 new_tbl = bucket_table_alloc(ht, size, GFP_KERNEL); in rhashtable_rehash_alloc()
368 if (new_tbl == NULL) in rhashtable_rehash_alloc()
371 err = rhashtable_rehash_attach(ht, old_tbl, new_tbl); in rhashtable_rehash_alloc()
373 bucket_table_free(new_tbl); in rhashtable_rehash_alloc()
450 struct bucket_table *new_tbl; in rhashtable_insert_rehash() local
468 new_tbl = bucket_table_alloc(ht, size, GFP_ATOMIC | __GFP_NOWARN); in rhashtable_insert_rehash()
469 if (new_tbl == NULL) in rhashtable_insert_rehash()
472 err = rhashtable_rehash_attach(ht, tbl, new_tbl); in rhashtable_insert_rehash()
474 bucket_table_free(new_tbl); in rhashtable_insert_rehash()
550 struct bucket_table *new_tbl; in rhashtable_insert_one() local
559 new_tbl = rht_dereference_rcu(tbl->future_tbl, ht); in rhashtable_insert_one()
560 if (new_tbl) in rhashtable_insert_one()
561 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()
619 new_tbl = rhashtable_insert_one(ht, bkt, tbl, in rhashtable_try_insert()
621 inserted = data && !new_tbl; in rhashtable_try_insert()
624 if (PTR_ERR(new_tbl) != -EEXIST) in rhashtable_try_insert()
625 data = ERR_CAST(new_tbl); in rhashtable_try_insert()
632 } while (!IS_ERR_OR_NULL(new_tbl)); in rhashtable_try_insert()