Lines Matching refs:cache
28 struct cachefiles_cache *cache; in cachefiles_alloc_object() local
34 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_alloc_object()
36 _enter("{%s},%x,", cache->cache.identifier, cookie->debug_id); in cachefiles_alloc_object()
52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
107 fscache_object_destroyed(&cache->cache); in cachefiles_alloc_object()
123 struct cachefiles_cache *cache; in cachefiles_lookup_object() local
129 cache = container_of(_object->cache, struct cachefiles_cache, cache); in cachefiles_lookup_object()
138 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_lookup_object()
142 cachefiles_end_secure(cache, saved_cred); in cachefiles_lookup_object()
208 struct cachefiles_cache *cache; in cachefiles_update_object() local
217 cache = container_of(object->fscache.cache, struct cachefiles_cache, in cachefiles_update_object()
218 cache); in cachefiles_update_object()
250 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_update_object()
252 cachefiles_end_secure(cache, saved_cred); in cachefiles_update_object()
264 struct cachefiles_cache *cache; in cachefiles_drop_object() local
276 cache = container_of(object->fscache.cache, in cachefiles_drop_object()
277 struct cachefiles_cache, cache); in cachefiles_drop_object()
291 _object != cache->cache.fsdef in cachefiles_drop_object()
298 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_drop_object()
299 cachefiles_delete_object(cache, object); in cachefiles_drop_object()
300 cachefiles_end_secure(cache, saved_cred); in cachefiles_drop_object()
311 cachefiles_mark_object_inactive(cache, object, i_blocks); in cachefiles_drop_object()
326 struct fscache_cache *cache; in cachefiles_put_object() local
364 cache = object->fscache.cache; in cachefiles_put_object()
367 fscache_object_destroyed(cache); in cachefiles_put_object()
378 struct cachefiles_cache *cache; in cachefiles_sync_cache() local
384 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_sync_cache()
388 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_sync_cache()
389 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
390 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache()
391 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
392 cachefiles_end_secure(cache, saved_cred); in cachefiles_sync_cache()
395 cachefiles_io_error(cache, in cachefiles_sync_cache()
408 struct cachefiles_cache *cache; in cachefiles_check_consistency() local
415 cache = container_of(object->fscache.cache, in cachefiles_check_consistency()
416 struct cachefiles_cache, cache); in cachefiles_check_consistency()
418 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_check_consistency()
420 cachefiles_end_secure(cache, saved_cred); in cachefiles_check_consistency()
433 struct cachefiles_cache *cache; in cachefiles_attr_changed() local
446 cache = container_of(object->fscache.cache, in cachefiles_attr_changed()
447 struct cachefiles_cache, cache); in cachefiles_attr_changed()
463 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_attr_changed()
484 cachefiles_end_secure(cache, saved_cred); in cachefiles_attr_changed()
502 struct cachefiles_cache *cache; in cachefiles_invalidate_object() local
509 cache = container_of(object->fscache.cache, in cachefiles_invalidate_object()
510 struct cachefiles_cache, cache); in cachefiles_invalidate_object()
523 path.mnt = cache->mnt; in cachefiles_invalidate_object()
525 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_invalidate_object()
529 cachefiles_end_secure(cache, saved_cred); in cachefiles_invalidate_object()
546 static void cachefiles_dissociate_pages(struct fscache_cache *cache) in cachefiles_dissociate_pages() argument