list_mode
if (WARN_ON_ONCE(b->list_mode != LIST_CLEAN))
if (WARN_ON_ONCE(b->list_mode != LIST_DIRTY))
b->list_mode = LIST_CLEAN;
(unsigned long long)b->block, atomic_read(&b->hold_count), b->list_mode);
static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode)
return bc->lru[list_mode].count;
struct dm_buffer *b, int list_mode)
if (list_mode != b->list_mode) {
b->list_mode = list_mode;
b->list_mode = new_mode;
if (WARN_ON_ONCE(b->list_mode >= LIST_SIZE))