Lines Matching refs:cookie
22 struct cachefiles_object *cachefiles_alloc_object(struct fscache_cookie *cookie) in cachefiles_alloc_object() argument
24 struct fscache_volume *vcookie = cookie->volume; in cachefiles_alloc_object()
28 _enter("{%s},%x,", vcookie->key, cookie->debug_id); in cachefiles_alloc_object()
40 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object()
43 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1, in cachefiles_alloc_object()
54 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, in cachefiles_see_object()
67 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why); in cachefiles_grab_object()
78 unsigned int cookie_debug_id = object->cookie->debug_id; in cachefiles_put_object()
93 fscache_put_cookie(object->cookie, fscache_cookie_put_object); in cachefiles_put_object()
94 object->cookie = NULL; in cachefiles_put_object()
117 ni_size = object->cookie->object_size; in cachefiles_adjust_size()
172 static bool cachefiles_lookup_cookie(struct fscache_cookie *cookie) in cachefiles_lookup_cookie() argument
175 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv; in cachefiles_lookup_cookie()
179 object = cachefiles_alloc_object(cookie); in cachefiles_lookup_cookie()
188 cookie->cache_priv = object; in cachefiles_lookup_cookie()
210 fscache_caching_failed(cookie); in cachefiles_lookup_cookie()
211 _debug("failed c=%08x o=%08x", cookie->debug_id, object->debug_id); in cachefiles_lookup_cookie()
278 struct fscache_cookie *cookie = object->cookie; in cachefiles_resize_cookie() local
281 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie()
289 object->cookie->object_size = new_size; in cachefiles_resize_cookie()
297 cookie->object_size = new_size; in cachefiles_resize_cookie()
308 if (test_and_clear_bit(FSCACHE_COOKIE_LOCAL_WRITE, &object->cookie->flags)) in cachefiles_commit_object()
310 if (test_and_clear_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags)) in cachefiles_commit_object()
325 if (test_bit(FSCACHE_COOKIE_RETIRED, &object->cookie->flags)) { in cachefiles_clean_up_object()
349 static void cachefiles_withdraw_cookie(struct fscache_cookie *cookie) in cachefiles_withdraw_cookie() argument
351 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_withdraw_cookie()
373 cookie->cache_priv = NULL; in cachefiles_withdraw_cookie()
380 static bool cachefiles_invalidate_cookie(struct fscache_cookie *cookie) in cachefiles_invalidate_cookie() argument
382 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_invalidate_cookie()
386 _enter("o=%x,[%llu]", object->debug_id, object->cookie->object_size); in cachefiles_invalidate_cookie()
391 fscache_resume_after_invalidation(cookie); in cachefiles_invalidate_cookie()
408 set_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags); in cachefiles_invalidate_cookie()
414 fscache_resume_after_invalidation(cookie); in cachefiles_invalidate_cookie()
419 struct dentry *fan = volume->fanout[(u8)cookie->key_hash]; in cachefiles_invalidate_cookie()