Lines Matching defs:dm_buffer_cache
327 /* protected by the locks in dm_buffer_cache */
393 struct dm_buffer_cache {
411 static inline void cache_read_lock(struct dm_buffer_cache *bc, sector_t block)
419 static inline void cache_read_unlock(struct dm_buffer_cache *bc, sector_t block)
427 static inline void cache_write_lock(struct dm_buffer_cache *bc, sector_t block)
435 static inline void cache_write_unlock(struct dm_buffer_cache *bc, sector_t block)
448 struct dm_buffer_cache *cache;
454 static void lh_init(struct lock_history *lh, struct dm_buffer_cache *cache, bool write)
538 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep)
557 static void cache_destroy(struct dm_buffer_cache *bc)
573 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode)
578 static inline unsigned long cache_total(struct dm_buffer_cache *bc)
615 static struct dm_buffer *cache_get(struct dm_buffer_cache *bc, sector_t block)
636 static bool cache_put(struct dm_buffer_cache *bc, struct dm_buffer *b)
680 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode,
699 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode,
717 static void cache_mark(struct dm_buffer_cache *bc, struct dm_buffer *b, int list_mode)
734 static void __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode,
752 static void cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode,
780 static void __cache_iterate(struct dm_buffer_cache *bc, int list_mode,
808 static void cache_iterate(struct dm_buffer_cache *bc, int list_mode,
851 static bool cache_insert(struct dm_buffer_cache *bc, struct dm_buffer *b)
876 static bool cache_remove(struct dm_buffer_cache *bc, struct dm_buffer *b)
922 static void __remove_range(struct dm_buffer_cache *bc,
949 static void cache_remove_range(struct dm_buffer_cache *bc,
1017 struct dm_buffer_cache cache; /* must be last member */