Home
last modified time | relevance | path

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

123

/fs/fscache/
Dcookie.c23 static int fscache_acquire_non_index_cookie(struct fscache_cookie *cookie,
26 struct fscache_cookie *cookie);
27 static int fscache_attach_object(struct fscache_cookie *cookie,
30 static void fscache_print_cookie(struct fscache_cookie *cookie, char prefix) in fscache_print_cookie() argument
37 prefix, cookie, cookie->parent, cookie->flags, in fscache_print_cookie()
38 atomic_read(&cookie->n_children), in fscache_print_cookie()
39 atomic_read(&cookie->n_active)); in fscache_print_cookie()
41 prefix, cookie->def, cookie->netfs_data); in fscache_print_cookie()
43 object = READ_ONCE(cookie->backing_objects.first); in fscache_print_cookie()
48 pr_err("%c-key=[%u] '", prefix, cookie->key_len); in fscache_print_cookie()
[all …]
Dpage.c19 bool __fscache_check_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_check_page_write() argument
24 val = radix_tree_lookup(&cookie->stores, page->index); in __fscache_check_page_write()
26 trace_fscache_check_page(cookie, page, val, 0); in __fscache_check_page_write()
35 void __fscache_wait_on_page_write(struct fscache_cookie *cookie, struct page *page) in __fscache_wait_on_page_write() argument
37 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in __fscache_wait_on_page_write()
39 trace_fscache_page(cookie, page, fscache_page_write_wait); in __fscache_wait_on_page_write()
41 wait_event(*wq, !__fscache_check_page_write(cookie, page)); in __fscache_wait_on_page_write()
50 bool release_page_wait_timeout(struct fscache_cookie *cookie, struct page *page) in release_page_wait_timeout() argument
52 wait_queue_head_t *wq = bit_waitqueue(&cookie->flags, 0); in release_page_wait_timeout()
54 return wait_event_timeout(*wq, !__fscache_check_page_write(cookie, page), in release_page_wait_timeout()
[all …]
Dobject.c302 struct fscache_cookie *cookie, in fscache_object_init() argument
325 object->cookie = cookie; in fscache_object_init()
326 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init()
454 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local
477 cookie->def->name, object->cache->tag->name); in fscache_look_up_object()
512 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local
522 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative()
523 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative()
525 _debug("wake up lookup %p", &cookie->flags); in fscache_object_lookup_negative()
526 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative()
[all …]
Dinternal.h321 static inline void fscache_cookie_get(struct fscache_cookie *cookie, in fscache_cookie_get() argument
324 int usage = atomic_inc_return(&cookie->usage); in fscache_cookie_get()
326 trace_fscache_cookie(cookie, where, usage); in fscache_cookie_get()
333 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
335 if (cookie->def->get_context) in fscache_get_context()
336 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
344 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
346 if (cookie->def->put_context) in fscache_put_context()
347 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
354 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument
[all …]
Dobject-list.c165 struct fscache_cookie *cookie; in fscache_objlist_show() local
214 cookie = obj->cookie; in fscache_objlist_show()
216 FILTER(cookie->def, in fscache_objlist_show()
252 switch (cookie->type) { in fscache_objlist_show()
261 cookie->type); in fscache_objlist_show()
267 cookie->def->name, in fscache_objlist_show()
269 cookie->flags, in fscache_objlist_show()
270 cookie->netfs_data); in fscache_objlist_show()
273 keylen = cookie->key_len; in fscache_objlist_show()
276 auxlen = cookie->aux_len; in fscache_objlist_show()
[all …]
Dcache.c91 struct fscache_cookie *cookie) in fscache_select_cache_for_object() argument
105 spin_lock(&cookie->lock); in fscache_select_cache_for_object()
109 if (!hlist_empty(&cookie->backing_objects)) { in fscache_select_cache_for_object()
110 object = hlist_entry(cookie->backing_objects.first, in fscache_select_cache_for_object()
118 spin_unlock(&cookie->lock); in fscache_select_cache_for_object()
124 if (cookie->type != FSCACHE_COOKIE_TYPE_INDEX) { in fscache_select_cache_for_object()
126 spin_unlock(&cookie->lock); in fscache_select_cache_for_object()
131 spin_unlock(&cookie->lock); in fscache_select_cache_for_object()
133 if (!cookie->def->select_cache) in fscache_select_cache_for_object()
137 tag = cookie->def->select_cache(cookie->parent->netfs_data, in fscache_select_cache_for_object()
[all …]
Dnetfs.c18 struct fscache_cookie *candidate, *cookie; in __fscache_register_netfs() local
36 cookie = fscache_hash_cookie(candidate); in __fscache_register_netfs()
37 if (!cookie) in __fscache_register_netfs()
39 if (cookie != candidate) { in __fscache_register_netfs()
44 fscache_cookie_get(cookie->parent, fscache_cookie_get_register_netfs); in __fscache_register_netfs()
45 atomic_inc(&cookie->parent->n_children); in __fscache_register_netfs()
47 netfs->primary_index = cookie; in __fscache_register_netfs()
Doperation.c31 void fscache_operation_init(struct fscache_cookie *cookie, in fscache_operation_init() argument
46 trace_fscache_op(cookie, op, fscache_op_init); in fscache_operation_init()
60 struct fscache_cookie *cookie = op->object->cookie; in fscache_enqueue_operation() local
75 trace_fscache_op(cookie, op, fscache_op_enqueue_async); in fscache_enqueue_operation()
82 trace_fscache_op(cookie, op, fscache_op_enqueue_mythread); in fscache_enqueue_operation()
108 trace_fscache_op(object->cookie, op, fscache_op_run); in fscache_run_op()
163 trace_fscache_op(object->cookie, op, fscache_op_submit_ex); in fscache_submit_exclusive_op()
250 trace_fscache_op(object->cookie, op, fscache_op_submit); in fscache_submit_op()
369 trace_fscache_op(object->cookie, op, fscache_op_cancel); in fscache_cancel_op()
433 trace_fscache_op(object->cookie, op, fscache_op_cancel_all); in fscache_cancel_all_ops()
[all …]
/fs/ocfs2/dlm/
Ddlmast.c91 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
92 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
99 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
100 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast()
110 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
111 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast()
157 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_bast()
158 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_bast()
215 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_do_local_ast()
216 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in dlm_do_local_ast()
[all …]
Ddlmconvert.c275 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
276 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
287 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
288 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
371 convert.cookie = lock->ml.cookie; in dlm_send_remote_convert_request()
485 if (tmp_lock->ml.cookie == cnv->cookie && in dlm_convert_lock_handler()
497 dlm_get_lock_cookie_node(be64_to_cpu(cnv->cookie)), in dlm_convert_lock_handler()
498 dlm_get_lock_cookie_seq(be64_to_cpu(cnv->cookie))); in dlm_convert_lock_handler()
Ddlmlock.c49 u8 node, u64 cookie);
296 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
379 u8 node, u64 cookie) in dlm_init_lock() argument
395 newlock->ml.cookie = cpu_to_be64(cookie); in dlm_init_lock()
407 struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie, in dlm_new_lock() argument
427 dlm_init_lock(lock, type, node, cookie); in dlm_new_lock()
479 be64_to_cpu(create->cookie), NULL); in dlm_create_lock_handler()
526 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
534 *cookie = (dlm_next_cookie | tmpnode); in dlm_get_next_cookie()
Ddlmunlock.c252 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmunlock_common()
253 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmunlock_common()
338 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
467 if (lock->ml.cookie == unlock->cookie && in dlm_unlock_lock_handler()
513 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)), in dlm_unlock_lock_handler()
514 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie))); in dlm_unlock_lock_handler()
/fs/cachefiles/
Dinterface.c24 struct fscache_cookie *cookie) in cachefiles_alloc_object() argument
36 _enter("{%s},%p,", cache->cache.identifier, cookie); in cachefiles_alloc_object()
52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object()
54 object->type = cookie->def->type; in cachefiles_alloc_object()
64 keylen = cookie->key_len; in cachefiles_alloc_object()
65 if (keylen <= sizeof(cookie->inline_key)) in cachefiles_alloc_object()
66 p = cookie->inline_key; in cachefiles_alloc_object()
68 p = cookie->key; in cachefiles_alloc_object()
83 auxlen = cookie->aux_len; in cachefiles_alloc_object()
85 if (auxlen <= sizeof(cookie->inline_aux)) in cachefiles_alloc_object()
[all …]
Dxattr.c34 if (!object->fscache.cookie) in cachefiles_check_object_type()
37 snprintf(type, 3, "%02x", object->fscache.cookie->def->type); in cachefiles_check_object_type()
112 clear_bit(FSCACHE_COOKIE_AUX_UPDATED, &object->fscache.cookie->flags); in cachefiles_set_object_xattr()
142 clear_bit(FSCACHE_COOKIE_AUX_UPDATED, &object->fscache.cookie->flags); in cachefiles_update_object_xattr()
168 ASSERT(object->fscache.cookie->def->check_aux); in cachefiles_check_auxdata()
178 auxbuf->type != object->fscache.cookie->def->type) in cachefiles_check_auxdata()
242 if (object->fscache.cookie->def->check_aux) { in cachefiles_check_object_xattr()
249 object->fscache.cookie->def->name, dlen); in cachefiles_check_object_xattr()
Dnamei.c30 struct fscache_cookie *cookie; in __cachefiles_printk_object() local
46 cookie = object->fscache.cookie; in __cachefiles_printk_object()
47 if (cookie) { in __cachefiles_printk_object()
50 object->fscache.cookie, in __cachefiles_printk_object()
51 object->fscache.cookie->parent, in __cachefiles_printk_object()
52 object->fscache.cookie->netfs_data, in __cachefiles_printk_object()
53 object->fscache.cookie->flags); in __cachefiles_printk_object()
54 pr_err("%skey=[%u] '", prefix, cookie->key_len); in __cachefiles_printk_object()
55 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in __cachefiles_printk_object()
56 cookie->inline_key : cookie->key; in __cachefiles_printk_object()
[all …]
/fs/nfs/
Dfscache.c270 struct fscache_cookie *cookie = nfs_i_fscache(inode); in nfs_fscache_clear_inode() local
272 dfprintk(FSCACHE, "NFS: clear cookie (0x%p/0x%p)\n", nfsi, cookie); in nfs_fscache_clear_inode()
275 fscache_relinquish_cookie(cookie, &auxdata, false); in nfs_fscache_clear_inode()
309 struct fscache_cookie *cookie = nfs_i_fscache(inode); in nfs_fscache_open_file() local
311 if (!fscache_cookie_valid(cookie)) in nfs_fscache_open_file()
319 fscache_disable_cookie(cookie, &auxdata, true); in nfs_fscache_open_file()
320 fscache_uncache_all_inode_pages(cookie, inode); in nfs_fscache_open_file()
323 fscache_enable_cookie(cookie, &auxdata, nfsi->vfs_inode.i_size, in nfs_fscache_open_file()
325 if (fscache_cookie_enabled(cookie)) in nfs_fscache_open_file()
339 struct fscache_cookie *cookie = nfs_i_fscache(page->mapping->host); in nfs_fscache_release_page() local
[all …]
/fs/lockd/
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()
366 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_testargs()
388 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_lockargs()
411 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_cancargs()
[all …]
Dclntxdr.c131 const struct nlm_cookie *cookie) in encode_cookie() argument
133 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
137 struct nlm_cookie *cookie) in decode_cookie() argument
154 cookie->len = length; in decode_cookie()
155 memcpy(cookie->data, p, length); in decode_cookie()
158 cookie->len = 4; in decode_cookie()
159 memset(cookie->data, 0, 4); in decode_cookie()
359 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_testargs()
381 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_lockargs()
404 encode_cookie(xdr, &args->cookie); in nlm_xdr_enc_cancargs()
[all …]
Dsvcproc.c120 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
127 …>status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); in __nlmsvc_proc_test()
156 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
176 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
205 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
246 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
283 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
405 resp->cookie = argp->cookie; in nlmsvc_proc_share()
440 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
528 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()
Dsvc4proc.c90 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
125 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
145 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
173 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
213 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
250 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
362 resp->cookie = argp->cookie; in nlm4svc_proc_share()
397 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
485 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()
Dxdr.c152 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlm_encode_testres()
189 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
217 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
238 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_cancargs()
254 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_unlockargs()
271 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_shareargs()
287 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_shareres()
299 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_res()
336 if (!(p = nlm_decode_cookie(p, &resp->cookie))) in nlmsvc_decode_res()
Dxdr4.c145 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
186 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
214 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
235 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_cancargs()
251 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_unlockargs()
268 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_shareargs()
284 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_shareres()
296 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_res()
333 if (!(p = nlm4_decode_cookie(p, &resp->cookie))) in nlm4svc_decode_res()
Dsvclock.c58 static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie) in nlmdbg_cookie2a() argument
71 for (i = 0 ; i < cookie->len ; i++) { in nlmdbg_cookie2a()
76 sprintf(p, "%02x", cookie->data[i]); in nlmdbg_cookie2a()
160 nlmdbg_cookie2a(&block->b_call->a_args.cookie)); in nlmsvc_lookup_block()
183 nlmsvc_find_block(struct nlm_cookie *cookie) in nlmsvc_find_block() argument
188 if (nlm_cookie_match(&block->b_call->a_args.cookie,cookie)) in nlmsvc_find_block()
195 dprintk("nlmsvc_find_block(%s): block=%p\n", nlmdbg_cookie2a(cookie), block); in nlmsvc_find_block()
218 struct nlm_cookie *cookie) in nlmsvc_create_block() argument
241 nlmclnt_next_cookie(&call->a_args.cookie); in nlmsvc_create_block()
470 struct nlm_cookie *cookie, int reclaim) in nlmsvc_lock() argument
[all …]
/fs/afs/
Ddir.c541 struct afs_lookup_one_cookie *cookie = in afs_lookup_one_filldir() local
545 cookie->name.name, cookie->name.len, name, nlen, in afs_lookup_one_filldir()
552 if (cookie->name.len != nlen || in afs_lookup_one_filldir()
553 memcmp(cookie->name.name, name, nlen) != 0) { in afs_lookup_one_filldir()
558 cookie->fid.vnode = ino; in afs_lookup_one_filldir()
559 cookie->fid.unique = dtype; in afs_lookup_one_filldir()
560 cookie->found = 1; in afs_lookup_one_filldir()
575 struct afs_lookup_one_cookie cookie = { in afs_do_lookup_one() local
585 ret = afs_dir_iterate(dir, &cookie.ctx, key, _dir_version); in afs_do_lookup_one()
592 if (!cookie.found) { in afs_do_lookup_one()
[all …]
/fs/notify/
Dfsnotify.c246 u32 cookie) in fsnotify_handle_inode_event() argument
263 return ops->handle_inode_event(inode_mark, mask, inode, dir, name, cookie); in fsnotify_handle_inode_event()
269 u32 cookie, struct fsnotify_iter_info *iter_info) in fsnotify_handle_event() argument
311 dir, name, cookie); in fsnotify_handle_event()
316 u32 cookie, struct fsnotify_iter_info *iter_info) in send_to_group() argument
354 data, data_type, dir, cookie); in send_to_group()
361 file_name, cookie, iter_info); in send_to_group()
365 file_name, cookie, iter_info); in send_to_group()
463 const struct qstr *file_name, struct inode *inode, u32 cookie) in fsnotify() argument
542 cookie, &iter_info); in fsnotify()

123