Lines Matching defs:cache
92 MODULE_PARM_DESC(auth_hashtable_size, "RPC credential cache hashtable size");
96 MODULE_PARM_DESC(auth_max_cred_cachesize, "RPC credential maximum total cache size");
285 * Initialize RPC credential cache
374 * Clear the RPC credential cache, and delete those credentials
378 rpcauth_clear_credcache(struct rpc_cred_cache *cache)
383 unsigned int hashsize = 1U << cache->hashbits;
387 spin_lock(&cache->lock);
389 head = &cache->hashtable[i];
398 spin_unlock(&cache->lock);
404 * Destroy the RPC credential cache
409 struct rpc_cred_cache *cache = auth->au_credcache;
411 if (cache) {
413 rpcauth_clear_credcache(cache);
414 kfree(cache->hashtable);
415 kfree(cache);
472 * Run memory cache shrinker.
511 * Look up a process' credentials in the authentication cache
518 struct rpc_cred_cache *cache = auth->au_credcache;
523 nr = auth->au_ops->hash_cred(acred, cache->hashbits);
526 hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) {
544 spin_lock(&cache->lock);
545 hlist_for_each_entry(entry, &cache->hashtable[nr], cr_hash) {
556 hlist_add_head_rcu(&cred->cr_hash, &cache->hashtable[nr]);
559 spin_unlock(&cache->lock);