Lines Matching refs:cookie
22 struct cachefiles_object *cachefiles_alloc_object(struct fscache_cookie *cookie)
24 struct fscache_volume *vcookie = cookie->volume;
28 _enter("{%s},%x,", vcookie->key, cookie->debug_id);
40 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object);
43 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1,
54 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id,
67 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why);
78 unsigned int cookie_debug_id = object->cookie->debug_id;
93 fscache_put_cookie(object->cookie, fscache_cookie_put_object);
94 object->cookie = NULL;
117 ni_size = object->cookie->object_size;
172 static bool cachefiles_lookup_cookie(struct fscache_cookie *cookie)
175 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv;
179 object = cachefiles_alloc_object(cookie);
188 cookie->cache_priv = object;
210 fscache_caching_failed(cookie);
211 _debug("failed c=%08x o=%08x", cookie->debug_id, object->debug_id);
212 /* The caller holds an access count on the cookie, so we need them to
278 struct fscache_cookie *cookie = object->cookie;
281 loff_t old_size = cookie->object_size;
289 object->cookie->object_size = new_size;
294 * particularly. cookie->initial_size doesn't change and so the point
297 cookie->object_size = new_size;
308 if (test_and_clear_bit(FSCACHE_COOKIE_LOCAL_WRITE, &object->cookie->flags))
310 if (test_and_clear_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags))
325 if (test_bit(FSCACHE_COOKIE_RETIRED, &object->cookie->flags)) {
347 * Withdraw caching for a cookie.
349 static void cachefiles_withdraw_cookie(struct fscache_cookie *cookie)
351 struct cachefiles_object *object = cookie->cache_priv;
373 cookie->cache_priv = NULL;
378 * Invalidate the storage associated with a cookie.
380 static bool cachefiles_invalidate_cookie(struct fscache_cookie *cookie)
382 struct cachefiles_object *object = cookie->cache_priv;
386 _enter("o=%x,[%llu]", object->debug_id, object->cookie->object_size);
391 fscache_resume_after_invalidation(cookie);
408 set_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags);
414 fscache_resume_after_invalidation(cookie);
419 struct dentry *fan = volume->fanout[(u8)cookie->key_hash];