Home
last modified time | relevance | path

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

/linux-6.12.1/fs/smb/client/
Ddfs_cache.c62 static atomic_t cache_count; variable
133 atomic_dec(&cache_count); in flush_cache_ent()
306 atomic_set(&cache_count, 0); in dfs_cache_init()
468 if (atomic_read(&cache_count) >= CACHE_MAX_ENTRIES && oldest) in purge_cache()
483 if (atomic_read(&cache_count) >= CACHE_MAX_ENTRIES) { in add_cache_entry_locked()
502 atomic_inc(&cache_count); in add_cache_entry_locked()
/linux-6.12.1/drivers/md/
Ddm-bufio.c570 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count() function
577 return cache_count(bc, LIST_CLEAN) + cache_count(bc, LIST_DIRTY); in cache_total()
1732 if (cache_count(&c->cache, LIST_DIRTY) > in __check_watermark()
1733 cache_count(&c->cache, LIST_CLEAN) * DM_BUFIO_WRITEBACK_RATIO) in __check_watermark()
2139 nr_buffers = cache_count(&c->cache, LIST_DIRTY); in dm_bufio_write_dirty_buffers()
2375 WARN_ON(cache_count(&c->cache, i)); in drop_buffers()
2635 if (cache_count(&c->cache, i)) in dm_bufio_client_destroy()
2636 DMERR("leaked buffer count %d: %lu", i, cache_count(&c->cache, i)); in dm_bufio_client_destroy()
2639 WARN_ON(cache_count(&c->cache, i)); in dm_bufio_client_destroy()