Lines Matching refs:cache

2 /* Volume-level cache cookie handling.
39 * Pin the cache behind a volume so that we can access it.
55 * fscache_begin_volume_access - Pin a cache so a volume can be accessed
60 * Attempt to pin the cache to prevent it from going away whilst we're
63 * (1) If the cache tests as not live (state is not FSCACHE_CACHE_IS_ACTIVE),
66 * (2) If the cache tests as live, then we increment the volume's n_accesses
67 * count and then recheck the cache liveness, ending the access if it
73 * (4) Whilst the cache is caching, the volume's n_accesses is kept
76 * (5) When the cache is taken offline, the state is changed to prevent new
87 if (!fscache_cache_is_live(volume->cache))
90 if (!fscache_cache_is_live(volume->cache)) {
98 * fscache_end_volume_access - Unpin a cache at the end of an access.
103 * Unpin a cache volume after we've accessed it. The datafile @cookie and the
128 a->cache != b->cache ||
205 struct fscache_cache *cache;
216 cache = fscache_lookup_cache(cache_name, false);
217 if (IS_ERR(cache))
225 volume->cache = cache;
249 atomic_inc(&cache->n_volumes);
260 fscache_put_cache(cache, fscache_cache_put_alloc_volume);
266 * Create a volume's representation on disk. Have a volume ref and a cache
277 ops = volume->cache->ops;
280 fscache_end_cache_access(volume->cache,
296 if (!fscache_begin_cache_access(volume->cache,
317 * Acquire a volume representation cookie and link it to a (proposed) cache.
376 * Drop a cache's volume attachments.
380 struct fscache_cache *cache = volume->cache;
386 cache->ops->free_volume(volume);
393 atomic_dec(&volume->cache->n_volumes);
403 fscache_put_cache(cache, fscache_cache_put_volume);
448 * Withdraw a cache volume from service, waiting for all accesses to complete
491 volume->cache->name ?: "-",