bc
static inline struct buffer_tree *cache_get_tree(struct dm_buffer_cache *bc,
static inline void cache_read_lock(struct dm_buffer_cache *bc,
static inline void cache_read_unlock(struct dm_buffer_cache *bc,
static inline void cache_write_lock(struct dm_buffer_cache *bc,
static inline void cache_write_unlock(struct dm_buffer_cache *bc,
static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep)
static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode,
static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode,
lh_init(&lh, bc, true);
b = __cache_evict(bc, list_mode, pred, context, &lh);
static void cache_mark(struct dm_buffer_cache *bc, struct buffer_tree *tree,
cache_write_lock(bc, tree);
cache_write_unlock(bc, tree);
static void __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode,
static void cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode,
lh_init(&lh, bc, true);
__cache_mark_many(bc, old_mode, new_mode, pred, context, &lh);
static void __cache_iterate(struct dm_buffer_cache *bc, int list_mode,
static void cache_iterate(struct dm_buffer_cache *bc, int list_mode,
lh_init(&lh, bc, false);
__cache_iterate(bc, list_mode, fn, context, &lh);
static bool cache_insert(struct dm_buffer_cache *bc, struct buffer_tree *tree,
cache_write_lock(bc, tree);
cache_write_unlock(bc, tree);
static bool cache_remove(struct dm_buffer_cache *bc, struct buffer_tree *tree,
cache_write_lock(bc, tree);
cache_write_unlock(bc, tree);
static void __remove_range(struct dm_buffer_cache *bc,
static void cache_remove_range(struct dm_buffer_cache *bc,