Searched refs:cache_count (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/mm/ |
H A D | memfd.c | 36 int cache_count; in memfd_tag_pins() local 42 cache_count = 1; in memfd_tag_pins() 45 cache_count = HPAGE_PMD_NR; in memfd_tag_pins() 50 if (cache_count != 1) in memfd_tag_pins() 51 xas_set(xas, page->index + cache_count); in memfd_tag_pins() 53 latency += cache_count; in memfd_tag_pins() 86 int cache_count; in memfd_wait_for_pins() local 101 cache_count = 1; in memfd_wait_for_pins() 104 cache_count = HPAGE_PMD_NR; in memfd_wait_for_pins() 106 if (!xa_is_value(page) && cache_count != in memfd_wait_for_pins() [all …]
|
/openbmc/linux/fs/smb/client/ |
H A D | dfs_cache.c | 62 static atomic_t cache_count; variable 132 atomic_dec(&cache_count); in flush_cache_ent() 305 atomic_set(&cache_count, 0); in dfs_cache_init() 485 if (atomic_read(&cache_count) >= CACHE_MAX_ENTRIES) { in add_cache_entry_locked() 504 atomic_inc(&cache_count); in add_cache_entry_locked()
|
/openbmc/linux/drivers/md/ |
H A D | dm-bufio.c | 573 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count() function 580 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() 2112 nr_buffers = cache_count(&c->cache, LIST_DIRTY); in dm_bufio_write_dirty_buffers() 2348 WARN_ON(cache_count(&c->cache, i)); in drop_buffers() 2598 if (cache_count(&c->cache, i)) in dm_bufio_client_destroy() 2599 DMERR("leaked buffer count %d: %lu", i, cache_count(&c->cache, i)); in dm_bufio_client_destroy() 2602 WARN_ON(cache_count(&c->cache, i)); in dm_bufio_client_destroy()
|