Lines Matching refs:cookie
319 static inline void fscache_cookie_get(struct fscache_cookie *cookie, in fscache_cookie_get() argument
322 int usage = atomic_inc_return(&cookie->usage); in fscache_cookie_get()
324 trace_fscache_cookie(cookie, where, usage); in fscache_cookie_get()
331 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
333 if (cookie->def->get_context) in fscache_get_context()
334 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
342 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
344 if (cookie->def->put_context) in fscache_put_context()
345 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
352 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument
358 if (cookie->aux_len <= sizeof(cookie->inline_aux)) in fscache_update_aux()
359 p = cookie->inline_aux; in fscache_update_aux()
361 p = cookie->aux; in fscache_update_aux()
363 if (memcmp(p, aux_data, cookie->aux_len) != 0) { in fscache_update_aux()
364 memcpy(p, aux_data, cookie->aux_len); in fscache_update_aux()
365 set_bit(FSCACHE_COOKIE_AUX_UPDATED, &cookie->flags); in fscache_update_aux()