Lines Matching defs:lru
22 static inline bool list_lru_memcg_aware(struct list_lru *lru) in list_lru_memcg_aware()
27 static void list_lru_register(struct list_lru *lru) in list_lru_register()
37 static void list_lru_unregister(struct list_lru *lru) in list_lru_unregister()
47 static int lru_shrinker_id(struct list_lru *lru) in lru_shrinker_id()
53 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_from_memcg_idx()
64 list_lru_from_kmem(struct list_lru *lru, int nid, void *ptr, in list_lru_from_kmem()
85 static void list_lru_register(struct list_lru *lru) in list_lru_register()
89 static void list_lru_unregister(struct list_lru *lru) in list_lru_unregister()
93 static int lru_shrinker_id(struct list_lru *lru) in lru_shrinker_id()
98 static inline bool list_lru_memcg_aware(struct list_lru *lru) in list_lru_memcg_aware()
104 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_from_memcg_idx()
110 list_lru_from_kmem(struct list_lru *lru, int nid, void *ptr, in list_lru_from_kmem()
119 bool list_lru_add(struct list_lru *lru, struct list_head *item) in list_lru_add()
143 bool list_lru_del(struct list_lru *lru, struct list_head *item) in list_lru_del()
178 unsigned long list_lru_count_one(struct list_lru *lru, in list_lru_count_one()
196 unsigned long list_lru_count_node(struct list_lru *lru, int nid) in list_lru_count_node()
206 __list_lru_walk_one(struct list_lru *lru, int nid, int memcg_idx, in __list_lru_walk_one()
268 list_lru_walk_one(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_walk_one()
284 list_lru_walk_one_irq(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_walk_one_irq()
298 unsigned long list_lru_walk_node(struct list_lru *lru, int nid, in list_lru_walk_node()
353 static void memcg_list_lru_free(struct list_lru *lru, int src_idx) in memcg_list_lru_free()
367 static inline void memcg_init_list_lru(struct list_lru *lru, bool memcg_aware) in memcg_init_list_lru()
374 static void memcg_destroy_list_lru(struct list_lru *lru) in memcg_destroy_list_lru()
390 static void memcg_reparent_list_lru_node(struct list_lru *lru, int nid, in memcg_reparent_list_lru_node()
419 static void memcg_reparent_list_lru(struct list_lru *lru, in memcg_reparent_list_lru()
433 struct list_lru *lru; in memcg_reparent_list_lrus() local
465 struct list_lru *lru) in memcg_list_lru_allocated()
472 int memcg_list_lru_alloc(struct mem_cgroup *memcg, struct list_lru *lru, in memcg_list_lru_alloc()
550 static inline void memcg_init_list_lru(struct list_lru *lru, bool memcg_aware) in memcg_init_list_lru()
554 static void memcg_destroy_list_lru(struct list_lru *lru) in memcg_destroy_list_lru()
559 int __list_lru_init(struct list_lru *lru, bool memcg_aware, in __list_lru_init()
589 void list_lru_destroy(struct list_lru *lru) in list_lru_destroy()