Lines Matching defs:lru_entry
80 struct lru_entry {
88 struct lru_entry *stop;
89 struct lru_entry *e;
117 static void lru_insert(struct lru *lru, struct lru_entry *le)
137 * Convert a list_head pointer to an lru_entry pointer.
139 static inline struct lru_entry *to_le(struct list_head *l)
141 return container_of(l, struct lru_entry, list);
164 typedef bool (*iter_predicate)(struct lru_entry *le, void *context);
171 static struct lru_entry *lru_iter_next(struct lru_iter *it,
174 struct lru_entry *e;
193 * Invalidate a specific lru_entry and update all cursors in
196 static void lru_iter_invalidate(struct lru *lru, struct lru_entry *e)
222 static void lru_remove(struct lru *lru, struct lru_entry *le)
238 static inline void lru_reference(struct lru_entry *le)
255 typedef enum evict_result (*le_predicate)(struct lru_entry *le, void *context);
257 static struct lru_entry *lru_evict(struct lru *lru, le_predicate pred, void *context, bool no_sleep)
261 struct lru_entry *le;
271 le = container_of(h, struct lru_entry, list);
347 struct lru_entry lru;
523 static inline struct dm_buffer *le_to_buffer(struct lru_entry *le)
530 struct lru_entry *le = list_entry(l, struct lru_entry, list);
667 static enum evict_result __evict_pred(struct lru_entry *le, void *context)
685 struct lru_entry *le;
737 struct lru_entry *le;
784 struct lru_entry *le, *first;
2090 static bool is_writing(struct lru_entry *e, void *context)
2101 struct lru_entry *e;