Lines Matching refs:cookie

33  * Cache cookie.
61 /* Look up a cookie in the cache */
62 bool (*lookup_cookie)(struct fscache_cookie *cookie);
64 /* Withdraw an object without any cookie access counts held */
65 void (*withdraw_cookie)(struct fscache_cookie *cookie);
72 bool (*invalidate_cookie)(struct fscache_cookie *cookie);
79 void (*prepare_to_write)(struct fscache_cookie *cookie);
96 extern void fscache_withdraw_cookie(struct fscache_cookie *cookie);
101 struct fscache_cookie *cookie,
104 extern struct fscache_cookie *fscache_get_cookie(struct fscache_cookie *cookie,
106 extern void fscache_put_cookie(struct fscache_cookie *cookie,
108 extern void fscache_end_cookie_access(struct fscache_cookie *cookie,
110 extern void fscache_cookie_lookup_negative(struct fscache_cookie *cookie);
111 extern void fscache_resume_after_invalidation(struct fscache_cookie *cookie);
112 extern void fscache_caching_failed(struct fscache_cookie *cookie);
117 * fscache_cookie_state - Read the state of a cookie
118 * @cookie: The cookie to query
120 * Get the state of a cookie, imposing an ordering between the cookie contents
124 enum fscache_cookie_state fscache_cookie_state(struct fscache_cookie *cookie)
126 return smp_load_acquire(&cookie->state);
130 * fscache_get_key - Get a pointer to the cookie key
131 * @cookie: The cookie to query
133 * Return a pointer to the where a cookie's key is stored.
135 static inline void *fscache_get_key(struct fscache_cookie *cookie)
137 if (cookie->key_len <= sizeof(cookie->inline_key))
138 return cookie->inline_key;
140 return cookie->key;
165 * longer be accessed. After this point, the cache cookie may be destroyed.