Lines Matching refs:cache

32 	struct cachefiles_cache *cache;  in cachefiles_alloc_object()  local
38 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_alloc_object()
40 _enter("{%s},%p,", cache->cache.identifier, cookie); in cachefiles_alloc_object()
56 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
105 fscache_object_destroyed(&cache->cache); in cachefiles_alloc_object()
121 struct cachefiles_cache *cache; in cachefiles_lookup_object() local
127 cache = container_of(_object->cache, struct cachefiles_cache, cache); in cachefiles_lookup_object()
136 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_lookup_object()
140 cachefiles_end_secure(cache, saved_cred); in cachefiles_lookup_object()
202 struct cachefiles_cache *cache; in cachefiles_update_object() local
210 cache = container_of(object->fscache.cache, struct cachefiles_cache, in cachefiles_update_object()
211 cache); in cachefiles_update_object()
240 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_update_object()
242 cachefiles_end_secure(cache, saved_cred); in cachefiles_update_object()
254 struct cachefiles_cache *cache; in cachefiles_drop_object() local
264 cache = container_of(object->fscache.cache, in cachefiles_drop_object()
265 struct cachefiles_cache, cache); in cachefiles_drop_object()
279 _object != cache->cache.fsdef in cachefiles_drop_object()
282 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_drop_object()
283 cachefiles_delete_object(cache, object); in cachefiles_drop_object()
284 cachefiles_end_secure(cache, saved_cred); in cachefiles_drop_object()
295 write_lock(&cache->active_lock); in cachefiles_drop_object()
299 rb_erase(&object->active_node, &cache->active_nodes); in cachefiles_drop_object()
301 write_unlock(&cache->active_lock); in cachefiles_drop_object()
316 struct fscache_cache *cache; in cachefiles_put_object() local
349 cache = object->fscache.cache; in cachefiles_put_object()
352 fscache_object_destroyed(cache); in cachefiles_put_object()
363 struct cachefiles_cache *cache; in cachefiles_sync_cache() local
369 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_sync_cache()
373 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_sync_cache()
374 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
375 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache()
376 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
377 cachefiles_end_secure(cache, saved_cred); in cachefiles_sync_cache()
380 cachefiles_io_error(cache, in cachefiles_sync_cache()
393 struct cachefiles_cache *cache; in cachefiles_check_consistency() local
400 cache = container_of(object->fscache.cache, in cachefiles_check_consistency()
401 struct cachefiles_cache, cache); in cachefiles_check_consistency()
403 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_check_consistency()
405 cachefiles_end_secure(cache, saved_cred); in cachefiles_check_consistency()
418 struct cachefiles_cache *cache; in cachefiles_attr_changed() local
431 cache = container_of(object->fscache.cache, in cachefiles_attr_changed()
432 struct cachefiles_cache, cache); in cachefiles_attr_changed()
448 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_attr_changed()
469 cachefiles_end_secure(cache, saved_cred); in cachefiles_attr_changed()
487 struct cachefiles_cache *cache; in cachefiles_invalidate_object() local
494 cache = container_of(object->fscache.cache, in cachefiles_invalidate_object()
495 struct cachefiles_cache, cache); in cachefiles_invalidate_object()
509 path.mnt = cache->mnt; in cachefiles_invalidate_object()
511 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_invalidate_object()
515 cachefiles_end_secure(cache, saved_cred); in cachefiles_invalidate_object()
532 static void cachefiles_dissociate_pages(struct fscache_cache *cache) in cachefiles_dissociate_pages() argument