Home
last modified time | relevance | path

Searched refs:list_mode (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/md/
H A Ddm-bufio.c341 unsigned char list_mode; /* LIST_* */ member
563 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count() argument
565 return bc->lru[list_mode].count; in cache_count()
670 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode, in __cache_evict() argument
678 le = lru_evict(&bc->lru[list_mode], __evict_pred, &w, bc->no_sleep); in __cache_evict()
689 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode, in cache_evict() argument
696 b = __cache_evict(bc, list_mode, pred, context, &lh); in cache_evict()
707 static void cache_mark(struct dm_buffer_cache *bc, struct dm_buffer *b, int list_mode) in cache_mark() argument
710 if (list_mode != b->list_mode) { in cache_mark()
711 lru_remove(&bc->lru[b->list_mode], &b->lru); in cache_mark()
[all …]