Lines Matching refs:cookie
323 static inline void fscache_cookie_get(struct fscache_cookie *cookie, in fscache_cookie_get() argument
326 int usage = atomic_inc_return(&cookie->usage); in fscache_cookie_get()
328 trace_fscache_cookie(cookie, where, usage); in fscache_cookie_get()
335 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
337 if (cookie->def->get_context) in fscache_get_context()
338 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
346 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
348 if (cookie->def->put_context) in fscache_put_context()
349 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
356 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument
362 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_update_aux()
363 p = cookie->inline_aux; in fscache_update_aux()
365 p = cookie->aux; in fscache_update_aux()
367 if (memcmp(p, aux_data, cookie->aux_len) != 0) { in fscache_update_aux()
368 memcpy(p, aux_data, cookie->aux_len); in fscache_update_aux()
369 set_bit(FSCACHE_COOKIE_AUX_UPDATED, &cookie->flags); in fscache_update_aux()