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);
45 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object);
48 trace_cachefiles_ref(object->debug_id, cookie->debug_id, 1,
59 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id,
72 trace_cachefiles_ref(object->debug_id, object->cookie->debug_id, r, why);
83 unsigned int cookie_debug_id = object->cookie->debug_id;
98 fscache_put_cookie(object->cookie, fscache_cookie_put_object);
99 object->cookie = NULL;
122 ni_size = object->cookie->object_size;
177 static bool cachefiles_lookup_cookie(struct fscache_cookie *cookie)
180 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv;
184 object = cachefiles_alloc_object(cookie);
193 cookie->cache_priv = object;
215 fscache_caching_failed(cookie);
216 _debug("failed c=%08x o=%08x", cookie->debug_id, object->debug_id);
217 /* The caller holds an access count on the cookie, so we need them to
283 struct fscache_cookie *cookie = object->cookie;
286 loff_t old_size = cookie->object_size;
294 object->cookie->object_size = new_size;
299 * particularly. cookie->initial_size doesn't change and so the point
302 cookie->object_size = new_size;
313 if (test_and_clear_bit(FSCACHE_COOKIE_LOCAL_WRITE, &object->cookie->flags))
315 if (test_and_clear_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags))
330 if (test_bit(FSCACHE_COOKIE_RETIRED, &object->cookie->flags)) {
352 * Withdraw caching for a cookie.
354 static void cachefiles_withdraw_cookie(struct fscache_cookie *cookie)
356 struct cachefiles_object *object = cookie->cache_priv;
378 cookie->cache_priv = NULL;
383 * Invalidate the storage associated with a cookie.
385 static bool cachefiles_invalidate_cookie(struct fscache_cookie *cookie)
387 struct cachefiles_object *object = cookie->cache_priv;
391 _enter("o=%x,[%llu]", object->debug_id, object->cookie->object_size);
396 fscache_resume_after_invalidation(cookie);
413 set_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags);
419 fscache_resume_after_invalidation(cookie);
424 struct dentry *fan = volume->fanout[(u8)cookie->key_hash];