Lines Matching defs:cache
12 #include <linux/fscache-cache.h>
180 struct fscache_cookie *cookie = ctx->cache;
222 * fscache-cache.c
227 bool fscache_begin_cache_access(struct fscache_cache *cache, enum fscache_access_trace why);
228 void fscache_end_cache_access(struct fscache_cache *cache, enum fscache_access_trace why);
230 void fscache_put_cache(struct fscache_cache *cache, enum fscache_cache_trace where);
232 static inline enum fscache_cache_state fscache_cache_state(const struct fscache_cache *cache)
234 return smp_load_acquire(&cache->state);
237 static inline bool fscache_cache_is_live(const struct fscache_cache *cache)
239 return fscache_cache_state(cache) == FSCACHE_CACHE_IS_ACTIVE;
242 static inline void fscache_set_cache_state(struct fscache_cache *cache,
245 smp_store_release(&cache->state, new_state);
249 static inline bool fscache_set_cache_state_maybe(struct fscache_cache *cache,
253 return try_cmpxchg_release(&cache->state, &old_state, new_state);