Lines Matching refs:lru
37 struct list_lru_one *lru[]; member
44 struct list_lru_one lru; member
61 void list_lru_destroy(struct list_lru *lru);
62 int __list_lru_init(struct list_lru *lru, bool memcg_aware,
65 #define list_lru_init(lru) \ argument
66 __list_lru_init((lru), false, NULL, NULL)
67 #define list_lru_init_key(lru, key) \ argument
68 __list_lru_init((lru), false, (key), NULL)
69 #define list_lru_init_memcg(lru, shrinker) \ argument
70 __list_lru_init((lru), true, NULL, shrinker)
91 bool list_lru_add(struct list_lru *lru, struct list_head *item);
104 bool list_lru_del(struct list_lru *lru, struct list_head *item);
116 unsigned long list_lru_count_one(struct list_lru *lru,
118 unsigned long list_lru_count_node(struct list_lru *lru, int nid);
120 static inline unsigned long list_lru_shrink_count(struct list_lru *lru, in list_lru_shrink_count() argument
123 return list_lru_count_one(lru, sc->nid, sc->memcg); in list_lru_shrink_count()
126 static inline unsigned long list_lru_count(struct list_lru *lru) in list_lru_count() argument
132 count += list_lru_count_node(lru, nid); in list_lru_count()
166 unsigned long list_lru_walk_one(struct list_lru *lru,
183 unsigned long list_lru_walk_one_irq(struct list_lru *lru,
187 unsigned long list_lru_walk_node(struct list_lru *lru, int nid,
192 list_lru_shrink_walk(struct list_lru *lru, struct shrink_control *sc, in list_lru_shrink_walk() argument
195 return list_lru_walk_one(lru, sc->nid, sc->memcg, isolate, cb_arg, in list_lru_shrink_walk()
200 list_lru_shrink_walk_irq(struct list_lru *lru, struct shrink_control *sc, in list_lru_shrink_walk_irq() argument
203 return list_lru_walk_one_irq(lru, sc->nid, sc->memcg, isolate, cb_arg, in list_lru_shrink_walk_irq()
208 list_lru_walk(struct list_lru *lru, list_lru_walk_cb isolate, in list_lru_walk() argument
215 isolated += list_lru_walk_node(lru, nid, isolate, in list_lru_walk()