Lines Matching refs:cache
25 static int fscache_alloc_object(struct fscache_cache *cache,
194 struct fscache_cache *cache; in fscache_acquire_non_index_cookie() local
213 cache = fscache_select_cache_for_object(cookie->parent); in fscache_acquire_non_index_cookie()
214 if (!cache) { in fscache_acquire_non_index_cookie()
221 _debug("cache %s", cache->tag->name); in fscache_acquire_non_index_cookie()
227 ret = fscache_alloc_object(cache, cookie); in fscache_acquire_non_index_cookie()
278 static int fscache_alloc_object(struct fscache_cache *cache, in fscache_alloc_object() argument
284 _enter("%p,%p{%s}", cache, cookie, cookie->def->name); in fscache_alloc_object()
289 if (object->cache == cache) in fscache_alloc_object()
297 object = cache->ops->alloc_object(cache, cookie); in fscache_alloc_object()
312 ret = fscache_alloc_object(cache, cookie->parent); in fscache_alloc_object()
321 cache->ops->put_object(object); in fscache_alloc_object()
341 cache->ops->put_object(object); in fscache_alloc_object()
355 struct fscache_cache *cache = object->cache; in fscache_attach_object() local
366 if (p->cache == object->cache) { in fscache_attach_object()
377 if (p->cache == object->cache) { in fscache_attach_object()
394 spin_lock(&cache->object_list_lock); in fscache_attach_object()
395 list_add(&object->cache_link, &cache->object_list); in fscache_attach_object()
396 spin_unlock(&cache->object_list_lock); in fscache_attach_object()
687 if (test_bit(FSCACHE_IOERROR, &object->cache->flags)) in __fscache_check_consistency()
702 ret = object->cache->ops->check_consistency(op); in __fscache_check_consistency()