Lines Matching defs:cache
95 MODULE_PARM_DESC(auth_hashtable_size, "RPC credential cache hashtable size");
99 MODULE_PARM_DESC(auth_max_cred_cachesize, "RPC credential maximum total cache size");
288 * Initialize RPC credential cache
377 * Clear the RPC credential cache, and delete those credentials
381 rpcauth_clear_credcache(struct rpc_cred_cache *cache)
386 unsigned int hashsize = 1U << cache->hashbits;
390 spin_lock(&cache->lock);
392 head = &cache->hashtable[i];
401 spin_unlock(&cache->lock);
407 * Destroy the RPC credential cache
412 struct rpc_cred_cache *cache = auth->au_credcache;
414 if (cache) {
416 rpcauth_clear_credcache(cache);
417 kfree(cache->hashtable);
418 kfree(cache);
475 * Run memory cache shrinker.
514 * Look up a process' credentials in the authentication cache
521 struct rpc_cred_cache *cache = auth->au_credcache;
526 nr = auth->au_ops->hash_cred(acred, cache->hashbits);
529 hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) {
547 spin_lock(&cache->lock);
548 hlist_for_each_entry(entry, &cache->hashtable[nr], cr_hash) {
559 hlist_add_head_rcu(&cred->cr_hash, &cache->hashtable[nr]);
562 spin_unlock(&cache->lock);