Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/md/
Ddm-bufio.c347 unsigned char list_mode; /* LIST_* */ member
536 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count() argument
538 return bc->lru[list_mode].count; in cache_count()
643 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode, in __cache_evict() argument
651 le = lru_evict(&bc->lru[list_mode], __evict_pred, &w); in __cache_evict()
662 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode, in cache_evict() argument
669 b = __cache_evict(bc, list_mode, pred, context, &lh); in cache_evict()
680 static void cache_mark(struct dm_buffer_cache *bc, struct dm_buffer *b, int list_mode) in cache_mark() argument
683 if (list_mode != b->list_mode) { in cache_mark()
684 lru_remove(&bc->lru[b->list_mode], &b->lru); in cache_mark()
[all …]