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_dying(object) || in fscache_alloc_object()
331 fscache_cache_is_broken(object)) { in fscache_alloc_object()
341 cache->ops->put_object(object); in fscache_alloc_object()
352 struct fscache_object *object) in fscache_attach_object() argument
355 struct fscache_cache *cache = object->cache; in fscache_attach_object()
358 _enter("{%s},{OBJ%x}", cookie->def->name, object->debug_id); in fscache_attach_object()
366 if (p->cache == object->cache) { in fscache_attach_object()
377 if (p->cache == object->cache) { in fscache_attach_object()
383 object->parent = p; in fscache_attach_object()
393 if (list_empty(&object->cache_link)) { in fscache_attach_object()
395 list_add(&object->cache_link, &cache->object_list); in fscache_attach_object()
400 object->cookie = cookie; in fscache_attach_object()
402 hlist_add_head(&object->cookie_link, &cookie->backing_objects); in fscache_attach_object()
404 fscache_objlist_add(object); in fscache_attach_object()
418 struct fscache_object *object; in __fscache_invalidate() local
444 object = hlist_entry(cookie->backing_objects.first, in __fscache_invalidate()
447 if (fscache_object_is_live(object)) in __fscache_invalidate()
449 object, FSCACHE_OBJECT_EV_INVALIDATE); in __fscache_invalidate()
478 struct fscache_object *object; in __fscache_update_cookie() local
498 hlist_for_each_entry(object, in __fscache_update_cookie()
500 fscache_raise_event(object, FSCACHE_OBJECT_EV_UPDATE); in __fscache_update_cookie()
514 struct fscache_object *object; in __fscache_disable_cookie() local
542 hlist_for_each_entry(object, &cookie->backing_objects, cookie_link) { in __fscache_disable_cookie()
544 set_bit(FSCACHE_OBJECT_RETIRED, &object->flags); in __fscache_disable_cookie()
545 fscache_raise_event(object, FSCACHE_OBJECT_EV_KILL); in __fscache_disable_cookie()
657 struct fscache_object *object; in __fscache_check_consistency() local
685 object = hlist_entry(cookie->backing_objects.first, in __fscache_check_consistency()
687 if (test_bit(FSCACHE_IOERROR, &object->cache->flags)) in __fscache_check_consistency()
693 if (fscache_submit_op(object, op) < 0) in __fscache_check_consistency()
699 ret = fscache_wait_for_operation_activation(object, op, NULL, NULL); in __fscache_check_consistency()
702 ret = object->cache->ops->check_consistency(op); in __fscache_check_consistency()