Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 90) sorted by relevance

1234

/fs/netfs/
A Dfscache_cookie.c51 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in fscache_print_cookie()
52 cookie->inline_key : cookie->key; in fscache_print_cookie()
74 if (cookie->aux_len > sizeof(cookie->inline_aux)) in fscache_free_cookie()
76 if (cookie->key_len > sizeof(cookie->inline_key)) in fscache_free_cookie()
336 if (!cookie) in fscache_alloc_cookie()
351 if (cookie->aux_len <= sizeof(cookie->inline_aux)) { in fscache_alloc_cookie()
352 memcpy(cookie->inline_aux, aux_data, cookie->aux_len); in fscache_alloc_cookie()
497 cookie->volume->cache->ops->prepare_to_write(cookie); in fscache_prepare_to_write()
780 cookie->volume->cache->ops->withdraw_cookie(cookie); in fscache_cookie_state_machine()
1143 cookie->inline_key : cookie->key; in fscache_cookies_seq_show()
[all …]
A Dfscache_io.c34 state = fscache_cookie_state(cookie); in fscache_wait_for_operation()
45 wait_var_event(&cookie->state, in fscache_wait_for_operation()
71 struct fscache_cookie *cookie, in fscache_begin_operation() argument
80 cres->cache_priv = cookie; in fscache_begin_operation()
82 cres->debug_id = cookie->debug_id; in fscache_begin_operation()
91 spin_lock(&cookie->lock); in fscache_begin_operation()
116 spin_unlock(&cookie->lock); in fscache_begin_operation()
122 spin_unlock(&cookie->lock); in fscache_begin_operation()
123 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_begin_operation()
131 fscache_print_cookie(cookie, 'O'); in fscache_begin_operation()
[all …]
A Dinternal.h227 struct fscache_cookie *cookie = ctx->cache; in netfs_is_cache_enabled() local
229 return fscache_cookie_valid(cookie) && cookie->cache_priv && in netfs_is_cache_enabled()
230 fscache_cookie_enabled(cookie); in netfs_is_cache_enabled()
345 extern void fscache_print_cookie(struct fscache_cookie *cookie, char prefix);
346 extern bool fscache_begin_cookie_access(struct fscache_cookie *cookie,
349 static inline void fscache_see_cookie(struct fscache_cookie *cookie, in fscache_see_cookie() argument
352 trace_fscache_cookie(cookie->debug_id, refcount_read(&cookie->ref), in fscache_see_cookie()
437 struct fscache_cookie *cookie,
A Dfscache_volume.c55 struct fscache_cookie *cookie, in __fscache_begin_volume_access() argument
62 trace_fscache_access_volume(volume->debug_id, cookie ? cookie->debug_id : 0, in __fscache_begin_volume_access()
97 struct fscache_cookie *cookie, in fscache_begin_volume_access() argument
102 __fscache_begin_volume_access(volume, cookie, why); in fscache_begin_volume_access()
104 fscache_end_volume_access(volume, cookie, fscache_access_unlive); in fscache_begin_volume_access()
120 struct fscache_cookie *cookie, in fscache_end_volume_access() argument
127 trace_fscache_access_volume(volume->debug_id, cookie ? cookie->debug_id : 0, in fscache_end_volume_access()
/fs/cachefiles/
A Dinterface.c45 object->cookie = fscache_get_cookie(cookie, fscache_cookie_get_attach_object); in cachefiles_alloc_object()
99 object->cookie = NULL; in cachefiles_put_object()
122 ni_size = object->cookie->object_size; in cachefiles_adjust_size()
184 object = cachefiles_alloc_object(cookie); in cachefiles_lookup_cookie()
193 cookie->cache_priv = object; in cachefiles_lookup_cookie()
215 fscache_caching_failed(cookie); in cachefiles_lookup_cookie()
283 struct fscache_cookie *cookie = object->cookie; in cachefiles_resize_cookie() local
286 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie()
294 object->cookie->object_size = new_size; in cachefiles_resize_cookie()
302 cookie->object_size = new_size; in cachefiles_resize_cookie()
[all …]
A Dxattr.c44 unsigned int len = object->cookie->aux_len; in cachefiles_set_object_xattr()
57 buf->object_size = cpu_to_be64(object->cookie->object_size); in cachefiles_set_object_xattr()
61 if (test_bit(FSCACHE_COOKIE_LOCAL_WRITE, &object->cookie->flags)) in cachefiles_set_object_xattr()
64 memcpy(buf->data, fscache_get_aux(object->cookie), len); in cachefiles_set_object_xattr()
106 unsigned int len = object->cookie->aux_len, tlen; in cachefiles_check_auxdata()
107 const void *p = fscache_get_aux(object->cookie); in cachefiles_check_auxdata()
138 } else if (be64_to_cpu(buf->object_size) != object->cookie->object_size) { in cachefiles_check_auxdata()
194 void cachefiles_prepare_to_write(struct fscache_cookie *cookie) in cachefiles_prepare_to_write() argument
197 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_prepare_to_write()
200 _enter("c=%08x", object->cookie->debug_id); in cachefiles_prepare_to_write()
A Dondemand.c161 struct fscache_cookie *cookie; in cachefiles_ondemand_copen() local
248 cookie = req->object->cookie; in cachefiles_ondemand_copen()
249 cookie->object_size = size; in cachefiles_ondemand_copen()
251 clear_bit(FSCACHE_COOKIE_NO_DATA_TO_READ, &cookie->flags); in cachefiles_ondemand_copen()
253 set_bit(FSCACHE_COOKIE_NO_DATA_TO_READ, &cookie->flags); in cachefiles_ondemand_copen()
612 struct fscache_cookie *cookie = object->cookie; in cachefiles_ondemand_init_open_req() local
626 cookie_key_size = cookie->key_len; in cachefiles_ondemand_init_open_req()
627 cookie_key = fscache_get_key(cookie); in cachefiles_ondemand_init_open_req()
629 if (!(object->cookie->advice & FSCACHE_ADV_WANT_CACHE_SIZE)) { in cachefiles_ondemand_init_open_req()
674 struct fscache_cookie *cookie = object->cookie; in cachefiles_ondemand_init_object() local
[all …]
/fs/ocfs2/dlm/
A Ddlmast.c267 __be64 cookie; in dlm_proxy_ast_handler() local
281 cookie = past->cookie; in dlm_proxy_ast_handler()
309 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
310 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
321 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
348 if (lock->ml.cookie == cookie) in dlm_proxy_ast_handler()
360 if (lock->ml.cookie == cookie) { in dlm_proxy_ast_handler()
369 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
370 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
386 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
[all …]
A Ddlmconvert.c273 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
274 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
285 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
286 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
369 convert.cookie = lock->ml.cookie; in dlm_send_remote_convert_request()
483 if (tmp_lock->ml.cookie == cnv->cookie && in dlm_convert_lock_handler()
495 dlm_get_lock_cookie_node(be64_to_cpu(cnv->cookie)), in dlm_convert_lock_handler()
496 dlm_get_lock_cookie_seq(be64_to_cpu(cnv->cookie))); in dlm_convert_lock_handler()
A Ddlmlock.c47 u8 node, u64 cookie);
294 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
377 u8 node, u64 cookie) in dlm_init_lock() argument
393 newlock->ml.cookie = cpu_to_be64(cookie); in dlm_init_lock()
405 struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie, in dlm_new_lock() argument
425 dlm_init_lock(lock, type, node, cookie); in dlm_new_lock()
477 be64_to_cpu(create->cookie), NULL); in dlm_create_lock_handler()
524 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
532 *cookie = (dlm_next_cookie | tmpnode); in dlm_get_next_cookie()
/fs/lockd/
A Dsvcxdr.h73 svcxdr_decode_cookie(struct xdr_stream *xdr, struct nlm_cookie *cookie) in svcxdr_decode_cookie() argument
88 cookie->len = len; in svcxdr_decode_cookie()
89 memcpy(cookie->data, p, len); in svcxdr_decode_cookie()
95 cookie->len = 4; in svcxdr_decode_cookie()
96 memset(cookie->data, 0, 4); in svcxdr_decode_cookie()
101 svcxdr_encode_cookie(struct xdr_stream *xdr, const struct nlm_cookie *cookie) in svcxdr_encode_cookie() argument
105 if (xdr_stream_encode_u32(xdr, cookie->len) < 0) in svcxdr_encode_cookie()
107 p = xdr_reserve_space(xdr, cookie->len); in svcxdr_encode_cookie()
110 memcpy(p, cookie->data, cookie->len); in svcxdr_encode_cookie()
A Dclnt4xdr.c134 const struct nlm_cookie *cookie) in encode_cookie() argument
136 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
140 struct nlm_cookie *cookie) in decode_cookie() argument
157 cookie->len = length; in decode_cookie()
158 memcpy(cookie->data, p, length); in decode_cookie()
161 cookie->len = 4; in decode_cookie()
162 memset(cookie->data, 0, 4); in decode_cookie()
359 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_testargs()
381 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_lockargs()
404 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_cancargs()
[all …]
A Dclntxdr.c132 const struct nlm_cookie *cookie) in encode_cookie() argument
134 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
138 struct nlm_cookie *cookie) in decode_cookie() argument
155 cookie->len = length; in decode_cookie()
156 memcpy(cookie->data, p, length); in decode_cookie()
159 cookie->len = 4; in decode_cookie()
160 memset(cookie->data, 0, 4); in decode_cookie()
360 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_testargs()
382 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_lockargs()
405 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_cancargs()
[all …]
A Dsvc4proc.c104 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
141 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
149 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
177 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
217 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
254 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
364 resp->cookie = argp->cookie; in nlm4svc_proc_share()
399 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
487 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()
A Dxdr4.c154 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
172 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
197 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_cancargs()
216 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_unlockargs()
230 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlm4svc_decode_res()
273 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_shareargs()
320 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_testres()
329 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_res()
338 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlm4svc_encode_shareres()
A Dxdr.c160 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_testargs()
178 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_lockargs()
203 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_cancargs()
222 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_unlockargs()
236 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlmsvc_decode_res()
280 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_shareargs()
327 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_testres()
336 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_res()
345 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlmsvc_encode_shareres()
A Dsvcproc.c124 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
163 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
171 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
200 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
241 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
278 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
398 resp->cookie = argp->cookie; in nlmsvc_proc_share()
433 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
521 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()
A Dsvclock.c70 for (i = 0 ; i < cookie->len ; i++) { in nlmdbg_cookie2a()
75 sprintf(p, "%02x", cookie->data[i]); in nlmdbg_cookie2a()
163 nlmdbg_cookie2a(&block->b_call->a_args.cookie)); in nlmsvc_lookup_block()
188 nlmsvc_find_block(struct nlm_cookie *cookie) in nlmsvc_find_block() argument
194 if (nlm_cookie_match(&block->b_call->a_args.cookie,cookie)) in nlmsvc_find_block()
226 struct nlm_cookie *cookie) in nlmsvc_create_block() argument
249 nlmclnt_next_cookie(&call->a_args.cookie); in nlmsvc_create_block()
481 struct nlm_cookie *cookie, int reclaim) in nlmsvc_lock() argument
977 nlmsvc_grant_reply(struct nlm_cookie *cookie, __be32 status) in nlmsvc_grant_reply() argument
984 *(unsigned int *)(cookie->data), status); in nlmsvc_grant_reply()
[all …]
/fs/xfs/scrub/
A Dxfblob.c74 xfblob_cookie cookie, in xfblob_load() argument
81 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_load()
85 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_load()
95 cookie + sizeof(key)); in xfblob_load()
102 xfblob_cookie *cookie, in xfblob_store() argument
123 *cookie = blob->last_offset; in xfblob_store()
135 xfblob_cookie cookie) in xfblob_free() argument
140 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_free()
144 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_free()
149 xfile_discard(blob->xfile, cookie, sizeof(key) + key.xb_size); in xfblob_free()
A Dxfblob.h18 int xfblob_load(struct xfblob *blob, xfblob_cookie cookie, void *ptr,
20 int xfblob_store(struct xfblob *blob, xfblob_cookie *cookie, const void *ptr,
22 int xfblob_free(struct xfblob *blob, xfblob_cookie cookie);
29 xfblob_cookie *cookie, in xfblob_storename() argument
32 return xfblob_store(blob, cookie, xname->name, xname->len); in xfblob_storename()
38 xfblob_cookie cookie, in xfblob_loadname() argument
42 int ret = xfblob_load(blob, cookie, (void *)xname->name, size); in xfblob_loadname()
/fs/erofs/
A Dfscache.c140 ret = fscache_begin_read_operation(cres, cookie); in erofs_fscache_read_io_async()
199 io->io.private = mdev->m_dif->fscache->cookie; in erofs_fscache_bio_alloc()
318 ret = erofs_fscache_read_io_async(mdev.m_dif->fscache->cookie, in erofs_fscache_data_read_slice()
493 struct fscache_cookie *cookie; in erofs_fscache_acquire_cookie() local
506 if (!cookie) { in erofs_fscache_acquire_cookie()
511 fscache_use_cookie(cookie, false); in erofs_fscache_acquire_cookie()
531 ctx->cookie = cookie; in erofs_fscache_acquire_cookie()
536 fscache_unuse_cookie(cookie, NULL, NULL); in erofs_fscache_acquire_cookie()
537 fscache_relinquish_cookie(cookie, false); in erofs_fscache_acquire_cookie()
545 fscache_unuse_cookie(ctx->cookie, NULL, NULL); in erofs_fscache_relinquish_cookie()
[all …]
/fs/afs/
A Ddir.c576 cookie->name.name, cookie->name.len, name, nlen, in afs_lookup_one_filldir()
589 cookie->fid.vnode = ino; in afs_lookup_one_filldir()
591 cookie->found = 1; in afs_lookup_one_filldir()
622 if (!cookie.found) { in afs_do_lookup_one()
627 *fid = cookie.fid; in afs_do_lookup_one()
644 cookie->name.name, cookie->name.len, name, nlen, in afs_lookup_filldir()
652 cookie->fids[cookie->nr_fids].vnode = ino; in afs_lookup_filldir()
653 cookie->fids[cookie->nr_fids].unique = dtype; in afs_lookup_filldir()
654 cookie->nr_fids++; in afs_lookup_filldir()
789 if (!cookie) in afs_do_lookup()
[all …]
/fs/bcachefs/
A Drebalance.c239 struct bkey_i_cookie *cookie; in bch2_set_rebalance_needs_scan_trans() local
252 ? le64_to_cpu(bkey_s_c_to_cookie(k).v->cookie) in bch2_set_rebalance_needs_scan_trans()
255 cookie = bch2_trans_kmalloc(trans, sizeof(*cookie)); in bch2_set_rebalance_needs_scan_trans()
256 ret = PTR_ERR_OR_ZERO(cookie); in bch2_set_rebalance_needs_scan_trans()
260 bkey_cookie_init(&cookie->k_i); in bch2_set_rebalance_needs_scan_trans()
261 cookie->k.p = iter.pos; in bch2_set_rebalance_needs_scan_trans()
262 cookie->v.cookie = cpu_to_le64(v + 1); in bch2_set_rebalance_needs_scan_trans()
264 ret = bch2_trans_update(trans, &iter, &cookie->k_i, 0); in bch2_set_rebalance_needs_scan_trans()
300 ? le64_to_cpu(bkey_s_c_to_cookie(k).v->cookie) in bch2_clear_rebalance_needs_scan()
303 if (v == cookie) in bch2_clear_rebalance_needs_scan()
[all …]
/fs/nfs/
A Ddir.c140 u64 cookie; member
313 u64 *cookie) in nfs_readdir_folio_array_append() argument
344 *cookie = array->last_cookie; in nfs_readdir_folio_array_append()
363 if (cookie == 0) in nfs_readdir_folio_cookie_hash()
365 return hash_64(cookie, 18); in nfs_readdir_folio_cookie_hash()
524 u64 cookie) in nfs_readdir_array_cookie_in_range() argument
531 if (array->size && cookie < array->array[0].cookie) in nfs_readdir_array_cookie_in_range()
583 __be32 *verf, u64 cookie, in nfs_readdir_xdr_filler() argument
592 .cookie = cookie, in nfs_readdir_xdr_filler()
834 u64 cookie; in nfs_readdir_folio_filler() local
[all …]
/fs/notify/
A Dfsnotify.c301 u32 cookie) in fsnotify_handle_inode_event() argument
321 return ops->handle_inode_event(inode_mark, mask, inode, dir, name, cookie); in fsnotify_handle_inode_event()
327 u32 cookie, struct fsnotify_iter_info *iter_info) in fsnotify_handle_event() argument
377 dir, name, cookie); in fsnotify_handle_event()
382 u32 cookie, struct fsnotify_iter_info *iter_info) in send_to_group() argument
414 data, data_type, dir, cookie); in send_to_group()
421 file_name, cookie, iter_info); in send_to_group()
425 file_name, cookie, iter_info); in send_to_group()
542 const struct qstr *file_name, struct inode *inode, u32 cookie) in fsnotify() argument
642 cookie, &iter_info); in fsnotify()

Completed in 65 milliseconds

1234