Lines Matching refs:cookie
62 static inline void fscache_cookie_see(struct fscache_cookie *cookie, in fscache_cookie_see() argument
65 trace_fscache_cookie(cookie->debug_id, refcount_read(&cookie->ref), in fscache_cookie_see()
120 struct fscache_retrieval *fscache_alloc_retrieval(struct fscache_cookie *cookie,
302 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
304 if (cookie->def->get_context) in fscache_get_context()
305 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
313 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
315 if (cookie->def->put_context) in fscache_put_context()
316 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
323 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument
329 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_update_aux()
330 p = cookie->inline_aux; in fscache_update_aux()
332 p = cookie->aux; in fscache_update_aux()
334 if (memcmp(p, aux_data, cookie->aux_len) != 0) { in fscache_update_aux()
335 memcpy(p, aux_data, cookie->aux_len); in fscache_update_aux()
336 set_bit(FSCACHE_COOKIE_AUX_UPDATED, &cookie->flags); in fscache_update_aux()