Lines Matching refs:head

76   unsigned long int hash = __nss_hash (key, len) % table->head->module;  in cache_search()
81 ref_t work = table->head->array[hash]; in cache_search()
103 ++table->head->neghit; in cache_search()
106 ++table->head->poshit; in cache_search()
120 if (nsearched > table->head->maxnsearched) in cache_search()
121 table->head->maxnsearched = nsearched; in cache_search()
155 unsigned long int hash = __nss_hash (key, len) % table->head->module; in cache_add()
174 assert (newp->key + newp->len <= table->head->first_free); in cache_add()
181 newp->next = atomic_load_relaxed (&table->head->array[hash]); in cache_add()
182 while (!atomic_compare_exchange_weak_release (&table->head->array[hash], in cache_add()
189 ++table->head->negmiss; in cache_add()
191 ++table->head->posmiss; in cache_add()
195 atomic_increment (&table->head->nentries); in cache_add()
199 unsigned long int nentries = table->head->nentries; in cache_add()
200 if (nentries > table->head->maxnentries) in cache_add()
201 table->head->maxnentries = nentries; in cache_add()
205 msync ((void *) table->head, in cache_add()
206 (char *) &table->head->array[hash] - (char *) table->head in cache_add()
249 size_t cnt = table->head->module; in prune_cache()
347 ref_t run = table->head->array[--cnt]; in prune_cache()
444 struct hashentry *head = NULL; in prune_cache() local
450 ++table->head->wrlockdelayed; in prune_cache()
456 atomic_fetch_add_relaxed (&table->head->gc_cycle, 1); in prune_cache()
457 assert ((table->head->gc_cycle & 1) == 1); in prune_cache()
463 ref_t *old = &table->head->array[first]; in prune_cache()
464 ref_t run = table->head->array[first]; in prune_cache()
478 runp->dellist = head; in prune_cache()
479 head = runp; in prune_cache()
483 --table->head->nentries; in prune_cache()
500 atomic_fetch_add_relaxed (&table->head->gc_cycle, 1); in prune_cache()
501 assert ((table->head->gc_cycle & 1) == 0); in prune_cache()
508 msync (table->head, in prune_cache()
509 data + table->head->first_free - (char *) table->head, in prune_cache()
515 struct hashentry *runp = head; in prune_cache()