Lines Matching defs:dm_buffer_cache

320 	/* protected by the locks in dm_buffer_cache */
386 struct dm_buffer_cache {
405 static inline struct buffer_tree *cache_get_tree(struct dm_buffer_cache *bc,
412 static inline void cache_read_lock(struct dm_buffer_cache *bc,
422 static inline void cache_read_unlock(struct dm_buffer_cache *bc,
432 static inline void cache_write_lock(struct dm_buffer_cache *bc,
442 static inline void cache_write_unlock(struct dm_buffer_cache *bc,
456 struct dm_buffer_cache *cache;
462 static void lh_init(struct lock_history *lh, struct dm_buffer_cache *cache, bool write)
543 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep)
562 static void cache_destroy(struct dm_buffer_cache *bc)
578 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode)
583 static inline unsigned long cache_total(struct dm_buffer_cache *bc)
620 static struct dm_buffer *cache_get(struct dm_buffer_cache *bc,
669 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode,
688 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode,
706 static void cache_mark(struct dm_buffer_cache *bc, struct buffer_tree *tree,
725 static void __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode,
743 static void cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode,
771 static void __cache_iterate(struct dm_buffer_cache *bc, int list_mode,
799 static void cache_iterate(struct dm_buffer_cache *bc, int list_mode,
842 static bool cache_insert(struct dm_buffer_cache *bc, struct buffer_tree *tree,
869 static bool cache_remove(struct dm_buffer_cache *bc, struct buffer_tree *tree,
917 static void __remove_range(struct dm_buffer_cache *bc,
944 static void cache_remove_range(struct dm_buffer_cache *bc,
1012 struct dm_buffer_cache cache; /* must be last member */