Lines Matching defs:cache
68 * @cache: cache root pointer
77 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
85 unsigned cache_obj_size = kmem_cache_size(cache);
118 lc->lc_cache = cache;
124 void *p = kmem_cache_alloc(cache, GFP_KERNEL);
141 kmem_cache_free(cache, p - e_off);
162 * @lc: the lru cache to destroy
178 * @lc: the lru cache to operate on
217 * @lc: the lru cache to print statistics of
226 * update of the cache.
292 * lc_del - removes an element from the cache
432 * @lc: the lru cache to operate on
435 * Finds an element in the cache, increases its usage count,
439 * cache. Therefore it is possible that an other element becomes evicted from
440 * the cache. In either case, the user is notified so he is able to e.g. keep
441 * a persistent log of the cache changes, and therefore the objects in use.
445 * The cache was marked %LC_STARVING,
457 * In this case, the cache is marked %LC_DIRTY,
468 * any cache set change.
477 * @lc: the lru cache to operate on
485 * In this case, the cache was already marked %LC_DIRTY.
497 * @lc: the lru cache to operate on
500 * Finds an element in the cache, increases its usage count,
505 * The cache was marked %LC_STARVING,
518 * @lc: the lru cache to operate on
542 * @lc: the lru cache to operate on
566 * @lc: the lru cache to operate on
578 * lc_seq_dump_details - Dump a complete LRU cache to seq in textual form.
579 * @lc: the lru cache to operate on