Home
last modified time | relevance | path

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

123

/fs/fscache/
Dcookie.c25 static int fscache_acquire_non_index_cookie(struct fscache_cookie *cookie,
28 struct fscache_cookie *cookie);
29 static int fscache_attach_object(struct fscache_cookie *cookie,
32 static void fscache_print_cookie(struct fscache_cookie *cookie, char prefix) in fscache_print_cookie() argument
41 cookie->debug_id, in fscache_print_cookie()
42 cookie->parent ? cookie->parent->debug_id : 0, in fscache_print_cookie()
43 cookie->flags, in fscache_print_cookie()
44 atomic_read(&cookie->n_children), in fscache_print_cookie()
45 atomic_read(&cookie->n_active)); in fscache_print_cookie()
48 cookie->def, 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 …]
Dio.c28 struct fscache_cookie *cookie) in __fscache_begin_read_operation() argument
39 if (hlist_empty(&cookie->backing_objects)) in __fscache_begin_read_operation()
42 if (test_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) { in __fscache_begin_read_operation()
47 ASSERTCMP(cookie->def->type, !=, FSCACHE_COOKIE_TYPE_INDEX); in __fscache_begin_read_operation()
49 if (fscache_wait_for_deferred_lookup(cookie) < 0) in __fscache_begin_read_operation()
52 op = fscache_alloc_retrieval(cookie, NULL, NULL, NULL); in __fscache_begin_read_operation()
55 trace_fscache_page_op(cookie, NULL, &op->op, fscache_page_op_retr_multi); in __fscache_begin_read_operation()
57 spin_lock(&cookie->lock); in __fscache_begin_read_operation()
59 if (!fscache_cookie_enabled(cookie) || in __fscache_begin_read_operation()
60 hlist_empty(&cookie->backing_objects)) in __fscache_begin_read_operation()
[all …]
Dobject.c298 struct fscache_cookie *cookie, in fscache_object_init() argument
321 object->cookie = cookie; in fscache_object_init()
322 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init()
449 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local
472 cookie->def->name, object->cache->tag->name); in fscache_look_up_object()
507 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local
517 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative()
518 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative()
520 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative()
521 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_object_lookup_negative()
[all …]
Dinternal.h62 static inline void fscache_cookie_see(struct fscache_cookie *cookie, in fscache_cookie_see() argument
65 trace_fscache_cookie(cookie->debug_id, refcount_read(&cookie->ref), in fscache_cookie_see()
120 struct fscache_retrieval *fscache_alloc_retrieval(struct fscache_cookie *cookie,
302 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
304 if (cookie->def->get_context) in fscache_get_context()
305 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
313 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
315 if (cookie->def->put_context) in fscache_put_context()
316 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
323 void fscache_update_aux(struct fscache_cookie *cookie, const void *aux_data) in fscache_update_aux() argument
[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.c34 void fscache_operation_init(struct fscache_cookie *cookie, in fscache_operation_init() argument
49 trace_fscache_op(cookie, op, fscache_op_init); in fscache_operation_init()
63 struct fscache_cookie *cookie = op->object->cookie; in fscache_enqueue_operation() local
78 trace_fscache_op(cookie, op, fscache_op_enqueue_async); in fscache_enqueue_operation()
85 trace_fscache_op(cookie, op, fscache_op_enqueue_mythread); in fscache_enqueue_operation()
111 trace_fscache_op(object->cookie, op, fscache_op_run); in fscache_run_op()
166 trace_fscache_op(object->cookie, op, fscache_op_submit_ex); in fscache_submit_exclusive_op()
253 trace_fscache_op(object->cookie, op, fscache_op_submit); in fscache_submit_op()
372 trace_fscache_op(object->cookie, op, fscache_op_cancel); in fscache_cancel_op()
436 trace_fscache_op(object->cookie, op, fscache_op_cancel_all); in fscache_cancel_all_ops()
[all …]
/fs/ocfs2/dlm/
Ddlmast.c89 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
90 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
97 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
98 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast()
108 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_ast()
109 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_ast()
155 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_queue_bast()
156 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in __dlm_queue_bast()
203 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_do_local_ast()
204 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie))); in dlm_do_local_ast()
[all …]
/fs/lockd/
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()
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 …]
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 …]
Dsvc4proc.c101 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
108 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
136 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
156 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
184 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
224 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
261 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
373 resp->cookie = argp->cookie; in nlm4svc_proc_share()
408 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
496 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()
Dsvcproc.c122 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
129 …>status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); in __nlmsvc_proc_test()
158 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
178 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
207 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
248 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
285 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
407 resp->cookie = argp->cookie; in nlmsvc_proc_share()
442 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
530 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()
Dxdr4.c156 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
175 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
201 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_cancargs()
220 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_unlockargs()
235 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlm4svc_decode_res()
280 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_shareargs()
329 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_testres()
339 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_res()
349 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlm4svc_encode_shareres()
Dxdr.c161 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_testargs()
180 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_lockargs()
206 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_cancargs()
226 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_unlockargs()
241 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlmsvc_decode_res()
286 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_shareargs()
335 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_testres()
345 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_res()
355 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlmsvc_encode_shareres()
Dsvclock.c59 static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie) in nlmdbg_cookie2a() argument
72 for (i = 0 ; i < cookie->len ; i++) { in nlmdbg_cookie2a()
77 sprintf(p, "%02x", cookie->data[i]); in nlmdbg_cookie2a()
161 nlmdbg_cookie2a(&block->b_call->a_args.cookie)); in nlmsvc_lookup_block()
184 nlmsvc_find_block(struct nlm_cookie *cookie) in nlmsvc_find_block() argument
189 if (nlm_cookie_match(&block->b_call->a_args.cookie,cookie)) in nlmsvc_find_block()
196 dprintk("nlmsvc_find_block(%s): block=%p\n", nlmdbg_cookie2a(cookie), block); in nlmsvc_find_block()
219 struct nlm_cookie *cookie) in nlmsvc_create_block() argument
242 nlmclnt_next_cookie(&call->a_args.cookie); in nlmsvc_create_block()
471 struct nlm_cookie *cookie, int reclaim) in nlmsvc_lock() argument
[all …]
/fs/cachefiles/
Dinterface.c24 struct fscache_cookie *cookie) in cachefiles_alloc_object() argument
36 _enter("{%s},%x,", cache->cache.identifier, cookie->debug_id); 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()
113 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()
167 ASSERT(object->fscache.cookie->def->check_aux); in cachefiles_check_auxdata()
177 auxbuf->type != object->fscache.cookie->def->type) in cachefiles_check_auxdata()
241 if (object->fscache.cookie->def->check_aux) { in cachefiles_check_object_xattr()
248 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 cookie->debug_id, in __cachefiles_printk_object()
51 cookie->parent ? cookie->parent->debug_id : 0, in __cachefiles_printk_object()
52 cookie->netfs_data, in __cachefiles_printk_object()
53 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/afs/
Ddir.c620 struct afs_lookup_one_cookie *cookie = in afs_lookup_one_filldir() local
624 cookie->name.name, cookie->name.len, name, nlen, in afs_lookup_one_filldir()
631 if (cookie->name.len != nlen || in afs_lookup_one_filldir()
632 memcmp(cookie->name.name, name, nlen) != 0) { in afs_lookup_one_filldir()
637 cookie->fid.vnode = ino; in afs_lookup_one_filldir()
638 cookie->fid.unique = dtype; in afs_lookup_one_filldir()
639 cookie->found = 1; in afs_lookup_one_filldir()
654 struct afs_lookup_one_cookie cookie = { in afs_do_lookup_one() local
664 ret = afs_dir_iterate(dir, &cookie.ctx, key, _dir_version); in afs_do_lookup_one()
670 if (!cookie.found) { in afs_do_lookup_one()
[all …]
/fs/ceph/
Dcache.h46 struct fscache_cookie *cookie = ceph_fscache_cookie(ceph_inode(inode)); in ceph_is_cache_enabled() local
48 if (!cookie) in ceph_is_cache_enabled()
50 return fscache_cookie_enabled(cookie); in ceph_is_cache_enabled()
55 struct fscache_cookie *cookie = ceph_fscache_cookie(ceph_inode(rreq->inode)); in ceph_begin_cache_operation() local
57 return fscache_begin_read_operation(rreq, cookie); in ceph_begin_cache_operation()
/fs/cifs/
Dfscache.c338 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_invalidate_page() local
340 cifs_dbg(FYI, "%s: (0x%p/0x%p)\n", __func__, page, cookie); in __cifs_fscache_invalidate_page()
341 fscache_wait_on_page_write(cookie, page); in __cifs_fscache_invalidate_page()
342 fscache_uncache_page(cookie, page); in __cifs_fscache_invalidate_page()
348 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_wait_on_page_write() local
350 cifs_dbg(FYI, "%s: (0x%p/0x%p)\n", __func__, page, cookie); in __cifs_fscache_wait_on_page_write()
351 fscache_wait_on_page_write(cookie, page); in __cifs_fscache_wait_on_page_write()
357 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_uncache_page() local
359 cifs_dbg(FYI, "%s: (0x%p/0x%p)\n", __func__, page, cookie); in __cifs_fscache_uncache_page()
360 fscache_uncache_page(cookie, page); in __cifs_fscache_uncache_page()
/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