Lines Matching refs:fscache
52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
99 _leave(" = %x [%p]", object->fscache.debug_id, lookup_data); in cachefiles_alloc_object()
100 return &object->fscache; in cachefiles_alloc_object()
131 struct cachefiles_object, fscache); in cachefiles_lookup_object()
132 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_object()
146 object->fscache.cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) in cachefiles_lookup_object()
147 cachefiles_attr_changed(&object->fscache); in cachefiles_lookup_object()
152 fscache_object_lookup_error(&object->fscache); in cachefiles_lookup_object()
166 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_lookup_complete()
168 _enter("{OBJ%x,%p}", object->fscache.debug_id, object->lookup_data); in cachefiles_lookup_complete()
186 container_of(_object, struct cachefiles_object, fscache); in cachefiles_grab_object()
198 return &object->fscache; in cachefiles_grab_object()
216 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_update_object()
217 cache = container_of(object->fscache.cache, struct cachefiles_cache, in cachefiles_update_object()
225 cookie = object->fscache.cookie; in cachefiles_update_object()
271 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_drop_object()
274 object->fscache.debug_id, atomic_read(&object->usage)); in cachefiles_drop_object()
276 cache = container_of(object->fscache.cache, in cachefiles_drop_object()
290 if (test_bit(FSCACHE_OBJECT_RETIRED, &object->fscache.flags) && in cachefiles_drop_object()
293 _debug("- retire object OBJ%x", object->fscache.debug_id); in cachefiles_drop_object()
331 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_put_object()
334 object->fscache.debug_id, atomic_read(&object->usage)); in cachefiles_put_object()
340 ASSERTIFCMP(object->fscache.parent, in cachefiles_put_object()
341 object->fscache.parent->n_children, >, 0); in cachefiles_put_object()
348 _debug("- kill object OBJ%x", object->fscache.debug_id); in cachefiles_put_object()
351 ASSERTCMP(object->fscache.parent, ==, NULL); in cachefiles_put_object()
354 ASSERTCMP(object->fscache.n_ops, ==, 0); in cachefiles_put_object()
355 ASSERTCMP(object->fscache.n_children, ==, 0); in cachefiles_put_object()
364 cache = object->fscache.cache; in cachefiles_put_object()
365 fscache_object_destroy(&object->fscache); in cachefiles_put_object()
414 object = container_of(op->object, struct cachefiles_object, fscache); in cachefiles_check_consistency()
415 cache = container_of(object->fscache.cache, in cachefiles_check_consistency()
445 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_attr_changed()
446 cache = container_of(object->fscache.cache, in cachefiles_attr_changed()
457 fscache_set_store_limit(&object->fscache, ni_size); in cachefiles_attr_changed()
487 fscache_set_store_limit(&object->fscache, 0); in cachefiles_attr_changed()
508 object = container_of(op->object, struct cachefiles_object, fscache); in cachefiles_invalidate_object()
509 cache = container_of(object->fscache.cache, in cachefiles_invalidate_object()
520 fscache_set_store_limit(&object->fscache, ni_size); in cachefiles_invalidate_object()
532 fscache_set_store_limit(&object->fscache, 0); in cachefiles_invalidate_object()