Home
last modified time | relevance | path

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

12

/fs/lockd/
Dsvc4proc.c87 resp->cookie = argp->cookie; in nlm4svc_proc_test()
94 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
115 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
135 argp->block, &argp->cookie, in nlm4svc_proc_lock()
156 resp->cookie = argp->cookie; in nlm4svc_proc_cancel()
189 resp->cookie = argp->cookie; in nlm4svc_proc_unlock()
218 resp->cookie = argp->cookie; in nlm4svc_proc_granted()
328 resp->cookie = argp->cookie; in nlm4svc_proc_share()
361 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
445 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()
Dsvcproc.c116 resp->cookie = argp->cookie; in nlmsvc_proc_test()
123 …>status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); in nlmsvc_proc_test()
145 resp->cookie = argp->cookie; in nlmsvc_proc_lock()
165 argp->block, &argp->cookie, in nlmsvc_proc_lock()
186 resp->cookie = argp->cookie; in nlmsvc_proc_cancel()
219 resp->cookie = argp->cookie; in nlmsvc_proc_unlock()
248 resp->cookie = argp->cookie; in nlmsvc_proc_granted()
360 resp->cookie = argp->cookie; in nlmsvc_proc_share()
393 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
477 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()
Dxdr.c191 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlm_encode_testres()
227 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
252 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
272 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_cancargs()
286 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_unlockargs()
303 if (!(p = nlm_decode_cookie(p, &argp->cookie)) in nlmsvc_decode_shareargs()
317 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_shareres()
327 if (!(p = nlm_encode_cookie(p, &resp->cookie))) in nlmsvc_encode_res()
359 if (!(p = nlm_decode_cookie(p, &resp->cookie))) in nlmsvc_decode_res()
393 if (!(p = nlm_encode_cookie(p, &argp->cookie))) in nlmclt_encode_testargs()
[all …]
Dxdr4.c194 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4_encode_testres()
234 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
259 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
279 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_cancargs()
293 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_unlockargs()
310 if (!(p = nlm4_decode_cookie(p, &argp->cookie)) in nlm4svc_decode_shareargs()
324 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_shareres()
334 if (!(p = nlm4_encode_cookie(p, &resp->cookie))) in nlm4svc_encode_res()
366 if (!(p = nlm4_decode_cookie(p, &resp->cookie))) in nlm4svc_decode_res()
400 if (!(p = nlm4_encode_cookie(p, &argp->cookie))) in nlm4clt_encode_testargs()
[all …]
Dsvclock.c120 nlmdbg_cookie2a(&block->b_call->a_args.cookie)); in nlmsvc_lookup_block()
143 nlmsvc_find_block(struct nlm_cookie *cookie) in nlmsvc_find_block() argument
148 if (nlm_cookie_match(&block->b_call->a_args.cookie,cookie)) in nlmsvc_find_block()
155 dprintk("nlmsvc_find_block(%s): block=%p\n", nlmdbg_cookie2a(cookie), block); in nlmsvc_find_block()
178 struct nlm_cookie *cookie) in nlmsvc_create_block() argument
202 nlmclnt_next_cookie(&call->a_args.cookie); in nlmsvc_create_block()
363 struct nlm_cookie *cookie, int reclaim) in nlmsvc_lock() argument
384 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_lock()
467 struct nlm_lock *conflock, struct nlm_cookie *cookie) in nlmsvc_testlock() argument
488 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_testlock()
[all …]
Dclntproc.c42 u32 cookie = atomic_inc_return(&nlm_cookie); in nlmclnt_next_cookie() local
44 memcpy(c->data, &cookie, 4); in nlmclnt_next_cookie()
128 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs()
/fs/ocfs2/dlm/
Ddlmast.c276 u64 cookie; in dlm_proxy_ast_handler() local
290 cookie = past->cookie; in dlm_proxy_ast_handler()
318 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
319 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
329 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
330 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
357 if (lock->ml.cookie == cookie) in dlm_proxy_ast_handler()
369 if (lock->ml.cookie == cookie) in dlm_proxy_ast_handler()
375 dlm_get_lock_cookie_node(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
376 dlm_get_lock_cookie_seq(be64_to_cpu(cookie)), in dlm_proxy_ast_handler()
[all …]
Ddlmlock.c65 u8 node, u64 cookie);
314 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
399 u8 node, u64 cookie) in dlm_init_lock() argument
415 newlock->ml.cookie = cpu_to_be64(cookie); in dlm_init_lock()
427 struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie, in dlm_new_lock() argument
447 dlm_init_lock(lock, type, node, cookie); in dlm_new_lock()
501 be64_to_cpu(create->cookie), NULL); in dlm_create_lock_handler()
548 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
556 *cookie = (dlm_next_cookie | tmpnode); in dlm_get_next_cookie()
Ddlmconvert.c289 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
290 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmconvert_remote()
363 convert.cookie = lock->ml.cookie; in dlm_send_remote_convert_request()
476 if (lock->ml.cookie == cnv->cookie && in dlm_convert_lock_handler()
488 dlm_get_lock_cookie_node(be64_to_cpu(cnv->cookie)), in dlm_convert_lock_handler()
489 dlm_get_lock_cookie_seq(be64_to_cpu(cnv->cookie))); in dlm_convert_lock_handler()
Ddlmunlock.c251 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlmunlock_common()
252 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlmunlock_common()
337 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
464 if (lock->ml.cookie == unlock->cookie && in dlm_unlock_lock_handler()
510 dlm_get_lock_cookie_node(be64_to_cpu(unlock->cookie)), in dlm_unlock_lock_handler()
511 dlm_get_lock_cookie_seq(be64_to_cpu(unlock->cookie))); in dlm_unlock_lock_handler()
Ddlmcommon.h335 __be64 cookie; member
585 __be64 cookie; member
598 __be64 cookie; member
614 __be64 cookie; member
629 __be64 cookie; member
768 static inline u8 dlm_get_lock_cookie_node(u64 cookie) in dlm_get_lock_cookie_node() argument
771 cookie >>= 56; in dlm_get_lock_cookie_node()
772 ret = (u8)(cookie & 0xffULL); in dlm_get_lock_cookie_node()
776 static inline unsigned long long dlm_get_lock_cookie_seq(u64 cookie) in dlm_get_lock_cookie_seq() argument
779 ret = ((unsigned long long)cookie) & 0x00ffffffffffffffULL; in dlm_get_lock_cookie_seq()
[all …]
Ddlmrecovery.c74 int total_locks, u64 cookie,
1154 int total_locks, u64 cookie, in dlm_init_migratable_lockres() argument
1163 mres->mig_cookie = cpu_to_be64(cookie); in dlm_init_migratable_lockres()
1178 ml->cookie = lock->ml.cookie; in dlm_add_lock_to_array()
1213 dummy.ml.cookie = 0; in dlm_add_dummy_lock()
1226 if (unlikely(ml->cookie == 0 && in dlm_is_dummy_lock()
1769 if (lock->ml.cookie != ml->cookie) in dlm_process_recovery_data()
1781 __be64 c = ml->cookie; in dlm_process_recovery_data()
1813 be64_to_cpu(ml->cookie), NULL); in dlm_process_recovery_data()
1889 if (lock->ml.cookie == ml->cookie) { in dlm_process_recovery_data()
[all …]
Ddlmdebug.c82 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in __dlm_print_lock()
83 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in __dlm_print_lock()
563 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dump_lock()
564 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dump_lock()
/fs/afs/
Ddir.c237 void *cookie, in afs_dir_iterate_block() argument
308 ret = filldir(cookie, in afs_dir_iterate_block()
330 static int afs_dir_iterate(struct inode *dir, unsigned *fpos, void *cookie, in afs_dir_iterate() argument
371 cookie, filldir); in afs_dir_iterate()
393 static int afs_readdir(struct file *file, void *cookie, filldir_t filldir) in afs_readdir() argument
405 cookie, filldir, file->private_data); in afs_readdir()
420 struct afs_lookup_cookie *cookie = _cookie; in afs_lookup_filldir() local
423 cookie->name, cookie->nlen, name, nlen, in afs_lookup_filldir()
430 if (cookie->nlen != nlen || memcmp(cookie->name, name, nlen) != 0) { in afs_lookup_filldir()
435 cookie->fid.vnode = ino; in afs_lookup_filldir()
[all …]
/fs/
Ddcookies.c115 int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument
137 *cookie = dcookie_value(dcs); in get_dcookie()
150 unsigned long cookie = (unsigned long)cookie64; in SYSCALL_DEFINE() local
170 if (!(dcs = find_dcookie(cookie))) in SYSCALL_DEFINE()
Dnamei.c611 void *cookie; in __do_follow_link() local
622 cookie = dentry->d_inode->i_op->follow_link(dentry, nd); in __do_follow_link()
623 error = PTR_ERR(cookie); in __do_follow_link()
624 if (!IS_ERR(cookie)) { in __do_follow_link()
630 dentry->d_inode->i_op->put_link(dentry, nd, cookie); in __do_follow_link()
2750 void *cookie; in generic_readlink() local
2754 cookie = dentry->d_inode->i_op->follow_link(dentry, &nd); in generic_readlink()
2755 if (IS_ERR(cookie)) in generic_readlink()
2756 return PTR_ERR(cookie); in generic_readlink()
2760 dentry->d_inode->i_op->put_link(dentry, &nd, cookie); in generic_readlink()
[all …]
/fs/notify/inotify/
Dinotify_user.c187 static struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie, in kernel_event() argument
201 kevent->event.cookie = cookie; in kernel_event()
271 u32 cookie, const char *name, in inotify_dev_queue_event() argument
292 last->event.cookie == cookie) { in inotify_dev_queue_event()
307 kevent = kernel_event(-1, IN_Q_OVERFLOW, cookie, NULL); in inotify_dev_queue_event()
309 kevent = kernel_event(wd, mask, cookie, name); in inotify_dev_queue_event()
Dinotify.c300 void inotify_inode_queue_event(struct inode *inode, u32 mask, u32 cookie, in inotify_inode_queue_event() argument
316 ih->in_ops->handle_event(watch, watch->wd, mask, cookie, in inotify_inode_queue_event()
333 u32 cookie, const char *name) in inotify_dentry_parent_queue_event() argument
348 inotify_inode_queue_event(inode, mask, cookie, name, in inotify_dentry_parent_queue_event()
/fs/configfs/
Dsymlink.c303 void *cookie) in configfs_put_link() argument
305 if (cookie) { in configfs_put_link()
306 unsigned long page = (unsigned long)cookie; in configfs_put_link()
/fs/nfs/
Ddir.c185 __func__, (long long)desc->entry->cookie, in nfs_readdir_filler()
191 error = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, desc->entry->cookie, page, in nfs_readdir_filler()
264 __func__, (unsigned long long)entry->cookie); in find_dirent()
296 (unsigned long long)entry->cookie, desc->current_index); in find_dirent_index()
299 *desc->dir_cookie = entry->cookie; in find_dirent_index()
369 desc->entry->cookie = desc->entry->prev_cookie = 0; in readdir_search_pagecache()
414 (unsigned long long)entry->cookie); in nfs_do_filldir()
439 *desc->dir_cookie = entry->cookie; in nfs_do_filldir()
512 desc->entry->cookie = desc->entry->prev_cookie = 0; in uncached_readdir()
556 my_entry.cookie = my_entry.prev_cookie = 0; in nfs_readdir()
[all …]
Dproc.c469 u64 cookie, struct page *page, unsigned int count, int plus) in nfs_proc_readdir() argument
474 .cookie = cookie, in nfs_proc_readdir()
485 dprintk("NFS call readdir %d\n", (unsigned int)cookie); in nfs_proc_readdir()
Dnfs3proc.c589 u64 cookie, struct page *page, unsigned int count, int plus) in nfs3_proc_readdir() argument
596 .cookie = cookie, in nfs3_proc_readdir()
619 plus? "plus" : "", (unsigned int) cookie); in nfs3_proc_readdir()
Dnfs2xdr.c405 *p++ = htonl(args->cookie); in nfs_xdr_readdirargs()
521 entry->prev_cookie = entry->cookie; in nfs_decode_dirent()
522 entry->cookie = ntohl(*p++); in nfs_decode_dirent()
/fs/nfsd/
Dnfs3proc.c439 argp->count, (u32) argp->cookie); in nfsd3_proc_readdir()
452 nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t*) &argp->cookie, in nfsd3_proc_readdir()
457 xdr_encode_hyper(resp->offset, argp->cookie); in nfsd3_proc_readdir()
478 argp->count, (u32) argp->cookie); in nfsd3_proc_readdirplus()
491 offset = argp->cookie; in nfsd3_proc_readdirplus()
Dnfs4proc.c543 u64 cookie = readdir->rd_cookie; in nfsd4_readdir() local
554 if ((cookie > ~(u32)0) || (cookie == 1) || (cookie == 2) || in nfsd4_readdir()
555 (cookie == 0 && memcmp(readdir->rd_verf.data, zeroverf.data, NFS4_VERIFIER_SIZE))) in nfsd4_readdir()

12