Lines Matching refs:cache
94 isid->entry.cache = NULL; in sidtab_set_initial()
512 kfree(rcu_dereference_raw(entry->cache)); in sidtab_destroy_entry()
566 struct sidtab_str_cache *cache, *victim = NULL; in sidtab_sid2str_put() local
575 cache = rcu_dereference_protected(entry->cache, in sidtab_sid2str_put()
577 if (cache) { in sidtab_sid2str_put()
579 list_move(&cache->lru_member, &s->cache_lru_list); in sidtab_sid2str_put()
583 cache = kmalloc(struct_size(cache, str, str_len), GFP_ATOMIC); in sidtab_sid2str_put()
584 if (!cache) in sidtab_sid2str_put()
592 rcu_assign_pointer(victim->parent->cache, NULL); in sidtab_sid2str_put()
596 cache->parent = entry; in sidtab_sid2str_put()
597 cache->len = str_len; in sidtab_sid2str_put()
598 memcpy(cache->str, str, str_len); in sidtab_sid2str_put()
599 list_add(&cache->lru_member, &s->cache_lru_list); in sidtab_sid2str_put()
601 rcu_assign_pointer(entry->cache, cache); in sidtab_sid2str_put()
611 struct sidtab_str_cache *cache; in sidtab_sid2str_get() local
619 cache = rcu_dereference(entry->cache); in sidtab_sid2str_get()
620 if (!cache) { in sidtab_sid2str_get()
623 *out_len = cache->len; in sidtab_sid2str_get()
625 *out = kmemdup(cache->str, cache->len, GFP_ATOMIC); in sidtab_sid2str_get()