Lines Matching defs:cache
93 isid->entry.cache = NULL;
507 kfree(rcu_dereference_raw(entry->cache));
561 struct sidtab_str_cache *cache, *victim = NULL;
564 /* do not cache invalid contexts */
570 cache = rcu_dereference_protected(entry->cache,
572 if (cache) {
573 /* entry in cache - just bump to the head of LRU list */
574 list_move(&cache->lru_member, &s->cache_lru_list);
578 cache = kmalloc(struct_size(cache, str, str_len), GFP_ATOMIC);
579 if (!cache)
583 /* pop a cache entry from the tail and free it */
587 rcu_assign_pointer(victim->parent->cache, NULL);
591 cache->parent = entry;
592 cache->len = str_len;
593 memcpy(cache->str, str, str_len);
594 list_add(&cache->lru_member, &s->cache_lru_list);
596 rcu_assign_pointer(entry->cache, cache);
606 struct sidtab_str_cache *cache;
610 return -ENOENT; /* do not cache invalid contexts */
614 cache = rcu_dereference(entry->cache);
615 if (!cache) {
618 *out_len = cache->len;
620 *out = kmemdup(cache->str, cache->len, GFP_ATOMIC);