Lines Matching refs:lru_cache
3 lru_cache.c
19 #include <linux/lru_cache.h>
23 MODULE_DESCRIPTION("lru_cache - Track sets of hot objects");
40 struct lru_cache *lc_ = (lc); \
55 int lc_try_lock(struct lru_cache *lc)
84 * Returns a pointer to a newly initialized struct lru_cache on success,
87 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
93 struct lru_cache *lc;
160 static void lc_free_by_index(struct lru_cache *lc, unsigned i)
174 void lc_destroy(struct lru_cache *lc)
190 * It is roughly the equivalent of re-allocating a fresh lru_cache object,
193 void lc_reset(struct lru_cache *lc)
229 void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc)
243 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr)
249 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr,
271 * @lc: The lru_cache object
280 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr)
287 * @lc: The lru_cache object
295 bool lc_is_used(struct lru_cache *lc, unsigned int enr)
303 * @lc: The lru_cache object
309 void lc_del(struct lru_cache *lc, struct lc_element *e)
321 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number)
345 static int lc_unused_element_available(struct lru_cache *lc)
361 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags)
480 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr)
500 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr)
521 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr)
534 void lc_committed(struct lru_cache *lc)
559 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e)
579 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i)
592 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e)
606 void lc_set(struct lru_cache *lc, unsigned int enr, int index)
638 void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext,