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()
45 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object()
48 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1, in cachefiles_alloc_object()
59 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, in cachefiles_see_object()
72 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why); in cachefiles_grab_object()
83 unsigned int cookie_debug_id = object->cookie->debug_id; in cachefiles_put_object()
98 fscache_put_cookie(object->cookie, fscache_cookie_put_object); in cachefiles_put_object()
99 object->cookie = NULL; in cachefiles_put_object()
122 ni_size = object->cookie->object_size; in cachefiles_adjust_size()
177 static bool cachefiles_lookup_cookie(struct fscache_cookie *cookie) in cachefiles_lookup_cookie() argument
180 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv; in cachefiles_lookup_cookie()
184 object = cachefiles_alloc_object(cookie); in cachefiles_lookup_cookie()
193 cookie->cache_priv = object; in cachefiles_lookup_cookie()
215 fscache_caching_failed(cookie); in cachefiles_lookup_cookie()
216 _debug("failed c=%08x o=%08x", cookie->debug_id, object->debug_id); in cachefiles_lookup_cookie()
283 struct fscache_cookie *cookie = object->cookie; in cachefiles_resize_cookie() local
286 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie()
294 object->cookie->object_size = new_size; in cachefiles_resize_cookie()
302 cookie->object_size = new_size; in cachefiles_resize_cookie()
313 if (test_and_clear_bit(FSCACHE_COOKIE_LOCAL_WRITE, &object->cookie->flags)) in cachefiles_commit_object()
315 if (test_and_clear_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags)) in cachefiles_commit_object()
330 if (test_bit(FSCACHE_COOKIE_RETIRED, &object->cookie->flags)) { in cachefiles_clean_up_object()
354 static void cachefiles_withdraw_cookie(struct fscache_cookie *cookie) in cachefiles_withdraw_cookie() argument
356 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_withdraw_cookie()
378 cookie->cache_priv = NULL; in cachefiles_withdraw_cookie()
385 static bool cachefiles_invalidate_cookie(struct fscache_cookie *cookie) in cachefiles_invalidate_cookie() argument
387 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_invalidate_cookie()
391 _enter("o=%x,[%llu]", object->debug_id, object->cookie->object_size); in cachefiles_invalidate_cookie()
396 fscache_resume_after_invalidation(cookie); in cachefiles_invalidate_cookie()
413 set_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags); in cachefiles_invalidate_cookie()
419 fscache_resume_after_invalidation(cookie); in cachefiles_invalidate_cookie()
424 struct dentry *fan = volume->fanout[(u8)cookie->key_hash]; in cachefiles_invalidate_cookie()