rcu_read_lock();
old_tbl = rht_dereference_rcu(ht->tbl, ht);
- hash = obj_raw_hashfn(ht, old_tbl, rht_obj(ht, obj));
+ hash = head_hashfn(ht, old_tbl, obj);
spin_lock_bh(bucket_lock(old_tbl, hash));
*/
tbl = rht_dereference_rcu(ht->future_tbl, ht);
if (tbl != old_tbl) {
- hash = obj_raw_hashfn(ht, tbl, rht_obj(ht, obj));
+ hash = head_hashfn(ht, tbl, obj);
spin_lock_nested(bucket_lock(tbl, hash), RHT_LOCK_NESTED);
}
no_resize_running = tbl == old_tbl;
- hash = rht_bucket_index(tbl, hash);
head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash);
if (rht_is_a_nulls(head))
exit:
if (tbl != old_tbl) {
- hash = obj_raw_hashfn(ht, tbl, rht_obj(ht, obj));
+ hash = head_hashfn(ht, tbl, obj);
spin_unlock(bucket_lock(tbl, hash));
}
- hash = obj_raw_hashfn(ht, old_tbl, rht_obj(ht, obj));
+ hash = head_hashfn(ht, old_tbl, obj);
spin_unlock_bh(bucket_lock(old_tbl, hash));
rcu_read_unlock();
unsigned hash;
bool ret = false;
- hash = obj_raw_hashfn(ht, tbl, rht_obj(ht, obj));
+ hash = head_hashfn(ht, tbl, obj);
lock = bucket_lock(tbl, hash);
- hash = rht_bucket_index(tbl, hash);
spin_lock_bh(lock);