Lines Matching defs:cache
12 * A cache entry. This is meant to be embedded in a structure of a user of
46 /* Number of entries stored in the cache. */
48 /* Maximum number of entries the cache can have. */
52 #define btrfs_lru_cache_for_each_entry_safe(cache, entry, tmp) \
53 list_for_each_entry_safe_reverse((entry), (tmp), &(cache)->lru_list, lru_list)
56 struct btrfs_lru_cache *cache)
58 return list_first_entry_or_null(&cache->lru_list,
62 void btrfs_lru_cache_init(struct btrfs_lru_cache *cache, unsigned int max_size);
63 struct btrfs_lru_cache_entry *btrfs_lru_cache_lookup(struct btrfs_lru_cache *cache,
65 int btrfs_lru_cache_store(struct btrfs_lru_cache *cache,
68 void btrfs_lru_cache_remove(struct btrfs_lru_cache *cache,
70 void btrfs_lru_cache_clear(struct btrfs_lru_cache *cache);