Lines Matching refs:object
28 struct fscache_object *object);
193 struct fscache_object *object; in fscache_acquire_non_index_cookie() local
243 object = hlist_entry(cookie->backing_objects.first, in fscache_acquire_non_index_cookie()
246 fscache_set_store_limit(object, i_size); in fscache_acquire_non_index_cookie()
250 fscache_raise_event(object, FSCACHE_OBJECT_EV_NEW_CHILD); in fscache_acquire_non_index_cookie()
281 struct fscache_object *object; in fscache_alloc_object() local
287 hlist_for_each_entry(object, &cookie->backing_objects, 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()
299 if (IS_ERR(object)) { in fscache_alloc_object()
301 ret = PTR_ERR(object); in fscache_alloc_object()
307 object->debug_id = atomic_inc_return(&fscache_object_debug_id); in fscache_alloc_object()
310 object->debug_id, cookie->def->name, object->events); in fscache_alloc_object()
319 if (fscache_attach_object(cookie, object) < 0) { in fscache_alloc_object()
321 cache->ops->put_object(object); in fscache_alloc_object()
330 if (fscache_object_is_dead(object)) { in fscache_alloc_object()
340 cache->ops->put_object(object); in fscache_alloc_object()
351 struct fscache_object *object) in fscache_attach_object() argument
354 struct fscache_cache *cache = object->cache; in fscache_attach_object()
357 _enter("{%s},{OBJ%x}", cookie->def->name, object->debug_id); in fscache_attach_object()
365 if (p->cache == object->cache) { in fscache_attach_object()
376 if (p->cache == object->cache) { in fscache_attach_object()
382 object->parent = p; in fscache_attach_object()
392 if (list_empty(&object->cache_link)) { in fscache_attach_object()
394 list_add(&object->cache_link, &cache->object_list); in fscache_attach_object()
399 object->cookie = cookie; in fscache_attach_object()
401 hlist_add_head(&object->cookie_link, &cookie->backing_objects); in fscache_attach_object()
403 fscache_objlist_add(object); in fscache_attach_object()
417 struct fscache_object *object; in __fscache_invalidate() local
443 object = hlist_entry(cookie->backing_objects.first, in __fscache_invalidate()
446 if (fscache_object_is_live(object)) in __fscache_invalidate()
448 object, FSCACHE_OBJECT_EV_INVALIDATE); in __fscache_invalidate()
477 struct fscache_object *object; in __fscache_update_cookie() local
497 hlist_for_each_entry(object, in __fscache_update_cookie()
499 fscache_raise_event(object, FSCACHE_OBJECT_EV_UPDATE); in __fscache_update_cookie()
513 struct fscache_object *object; in __fscache_disable_cookie() local
541 hlist_for_each_entry(object, &cookie->backing_objects, cookie_link) { in __fscache_disable_cookie()
543 set_bit(FSCACHE_OBJECT_RETIRED, &object->flags); in __fscache_disable_cookie()
544 fscache_raise_event(object, FSCACHE_OBJECT_EV_KILL); in __fscache_disable_cookie()
656 struct fscache_object *object; in __fscache_check_consistency() local
684 object = hlist_entry(cookie->backing_objects.first, in __fscache_check_consistency()
686 if (test_bit(FSCACHE_IOERROR, &object->cache->flags)) in __fscache_check_consistency()
692 if (fscache_submit_op(object, op) < 0) in __fscache_check_consistency()
698 ret = fscache_wait_for_operation_activation(object, op, in __fscache_check_consistency()
702 ret = object->cache->ops->check_consistency(op); in __fscache_check_consistency()