| /linux/fs/dlm/ |
| H A D | midcomms.c | 155 int nodeid; member 274 static struct midcomms_node *__find_node(int nodeid, int r) in __find_node() argument 279 if (node->nodeid == nodeid) in __find_node() 306 pr_debug("flush midcomms send queue of node %d\n", node->nodeid); in dlm_send_queue_flush() 319 pr_debug("reset node %d\n", node->nodeid); in midcomms_node_reset() 332 static struct midcomms_node *nodeid2node(int nodeid) in nodeid2node() argument 334 return __find_node(nodeid, nodeid_hash(nodeid)); in nodeid2node() 337 int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr) in dlm_midcomms_addr() argument 339 int ret, idx, r = nodeid_hash(nodeid); in dlm_midcomms_addr() 342 ret = dlm_lowcomms_addr(nodeid, addr); in dlm_midcomms_addr() [all …]
|
| H A D | member.c | 52 if (!slot->nodeid) in dlm_slots_copy_out() 54 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out() 75 if (!array[i].nodeid) in log_slots() 79 array[i].slot, array[i].nodeid); in log_slots() 127 if (le32_to_cpu(ro->ro_nodeid) != memb->nodeid) in dlm_slots_copy_in() 134 if (memb->nodeid == our_nodeid) { in dlm_slots_copy_in() 148 memb->nodeid); in dlm_slots_copy_in() 175 if (memb->nodeid == our_nodeid) { in dlm_slots_assign() 207 memb->nodeid, memb->slot_prev, memb->slot); in dlm_slots_assign() 232 array[memb->slot - 1].nodeid = memb->nodeid; in dlm_slots_assign() [all …]
|
| H A D | dir.c | 63 int error = -ENOMEM, last_len, nodeid, result; in dlm_recover_directory() local 77 if (memb->nodeid == dlm_our_nodeid()) in dlm_recover_directory() 90 error = dlm_rcom_names(ls, memb->nodeid, in dlm_recover_directory() 132 error = dlm_master_lookup(ls, memb->nodeid, in dlm_recover_directory() 135 &nodeid, &result); in dlm_recover_directory() 148 nodeid != memb->nodeid) { in dlm_recover_directory() 152 result, nodeid, memb->nodeid, in dlm_recover_directory() 163 nodeid == memb->nodeid) { in dlm_recover_directory() 236 static void drop_dir_ctx(struct dlm_ls *ls, int nodeid) in drop_dir_ctx() argument 242 if (dd->nodeid_init == nodeid) { in drop_dir_ctx() [all …]
|
| H A D | lowcomms.h | 27 static inline int nodeid_hash(int nodeid) in nodeid_hash() argument 29 return nodeid & (CONN_HASH_SIZE-1); in nodeid_hash() 37 void dlm_lowcomms_shutdown_node(int nodeid, bool force); 41 int dlm_lowcomms_close(int nodeid); 42 struct dlm_msg *dlm_lowcomms_new_msg(int nodeid, int len, char **ppc, 47 int dlm_lowcomms_connect_node(int nodeid); 48 int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark); 49 int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr); 50 void dlm_midcomms_receive_done(int nodeid);
|
| H A D | midcomms.h | 17 int dlm_validate_incoming_buffer(int nodeid, unsigned char *buf, int len); 18 int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen); 19 struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, char **ppc); 22 int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr); 24 int dlm_midcomms_close(int nodeid); 30 void dlm_midcomms_add_member(int nodeid); 31 void dlm_midcomms_remove_member(int nodeid); 32 void dlm_midcomms_unack_msg_resend(int nodeid);
|
| H A D | config.c | 299 int nodeid; member 313 int nodeid; member 321 int nodeid; member 527 unsigned int nodeid; in make_comm() local 530 rv = kstrtouint(name, 0, &nodeid); in make_comm() 544 cm->nodeid = nodeid; in make_comm() 556 dlm_midcomms_close(cm->nodeid); in drop_comm() 571 unsigned int nodeid; in make_node() local 576 rv = kstrtouint(name, 0, &nodeid); in make_node() 585 nd->nodeid = nodeid; in make_node() [all …]
|
| H A D | rcom.c | 122 static int check_rcom_config(struct dlm_ls *ls, struct dlm_rcom *rc, int nodeid) in check_rcom_config() argument 128 DLM_HEADER_MAJOR | DLM_HEADER_MINOR, nodeid, in check_rcom_config() 136 ls->ls_lvblen, ls->ls_exflags, nodeid, in check_rcom_config() 171 int dlm_rcom_status(struct dlm_ls *ls, int nodeid, uint32_t status_flags, in dlm_rcom_status() argument 178 ls->ls_recover_nodeid = nodeid; in dlm_rcom_status() 180 if (nodeid == dlm_our_nodeid()) { in dlm_rcom_status() 187 error = create_rcom_stateless(ls, nodeid, DLM_RCOM_STATUS, in dlm_rcom_status() 211 log_debug(ls, "remote node %d not ready", nodeid); in dlm_rcom_status() 215 error = check_rcom_config(ls, rc, nodeid); in dlm_rcom_status() 230 int nodeid = le32_to_cpu(rc_in->rc_header.h_nodeid); in receive_rcom_status() local [all …]
|
| H A D | requestqueue.c | 22 int nodeid; member 33 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, in dlm_add_requestqueue() argument 47 e->nodeid = nodeid; in dlm_add_requestqueue() 108 static int purge_request(struct dlm_ls *ls, struct dlm_message *ms, int nodeid) in purge_request() argument 116 if (dlm_is_removed(ls, nodeid)) in purge_request() 142 if (purge_request(ls, ms, e->nodeid)) { in dlm_purge_requestqueue()
|
| H A D | rcom.h | 15 int dlm_rcom_status(struct dlm_ls *ls, int nodeid, uint32_t status_flags, 17 int dlm_rcom_names(struct dlm_ls *ls, int nodeid, char *last_name, 22 int nodeid); 23 int dlm_send_ls_not_ready(int nodeid, const struct dlm_rcom *rc_in);
|
| H A D | config.h | 18 int nodeid; member 55 int dlm_comm_seq(int nodeid, uint32_t *seq, bool locked);
|
| H A D | member.h | 19 int dlm_is_removed(struct dlm_ls *ls, int nodeid); 20 int dlm_is_member(struct dlm_ls *ls, int nodeid);
|
| H A D | lock.h | 19 void dlm_receive_buffer(const union dlm_packet *p, int nodeid); 59 int nodeid, int pid);
|
| H A D | lock.c | 91 static void do_purge(struct dlm_ls *ls, int nodeid, int pid); 3807 int error, nodeid = le32_to_cpu(ms_in->m_header.h_nodeid); in send_lookup_reply() local 3809 error = create_message(r, NULL, nodeid, DLM_MSG_LOOKUP_REPLY, &ms, &mh); in send_lookup_reply() 4914 int nodeid) in dlm_receive_message() argument 4925 le32_to_cpu(ms->m_type), nodeid); in dlm_receive_message() 4937 dlm_add_requestqueue(ls, nodeid, ms); in dlm_receive_message() 4959 void dlm_receive_buffer(const union dlm_packet *p, int nodeid) in dlm_receive_buffer() argument 4973 log_print("invalid h_cmd %d from %u", hd->h_cmd, nodeid); in dlm_receive_buffer() 4977 if (le32_to_cpu(hd->h_nodeid) != nodeid) { in dlm_receive_buffer() 4979 le32_to_cpu(hd->h_nodeid), nodeid, in dlm_receive_buffer() [all …]
|
| H A D | requestqueue.h | 14 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid,
|
| H A D | recover.c | 110 error = dlm_rcom_status(ls, memb->nodeid, 0, seq); in wait_status_all() 132 int error = 0, delay = 0, nodeid = ls->ls_low_nodeid; in wait_status_low() local 140 error = dlm_rcom_status(ls, nodeid, status_flags, seq); in wait_status_low() 405 static void set_lock_master(struct list_head *queue, int nodeid) in set_lock_master() argument 411 lkb->lkb_nodeid = nodeid; in set_lock_master()
|
| H A D | dir.h | 21 char *outbuf, int outlen, int nodeid);
|
| /linux/fs/fuse/ |
| H A D | inode.c | 153 fuse_queue_forget(fc, sl->forget, sl->nodeid, 1); in fuse_cleanup_submount_lookup() 176 fuse_queue_forget(fc, fi->forget, fi->nodeid, in fuse_evict_inode() 414 u64 nodeid) in fuse_init_submount_lookup() argument 416 sl->nodeid = nodeid; in fuse_init_submount_lookup() 451 u64 nodeid = *(u64 *) _nodeidp; in fuse_inode_eq() local 452 if (get_node_id(inode) == nodeid) in fuse_inode_eq() 460 u64 nodeid = *(u64 *) _nodeidp; in fuse_inode_set() local 461 get_fuse_inode(inode)->nodeid = nodeid; in fuse_inode_set() 465 struct inode *fuse_iget(struct super_block *sb, u64 nodeid, in fuse_iget() argument 491 fi->nodeid = nodeid; in fuse_iget() [all …]
|
| H A D | fuse_i.h | 100 u64 nodeid; member 123 u64 nodeid; member 268 u64 nodeid; member 330 uint64_t nodeid; member 1062 return get_fuse_inode(inode)->nodeid; in get_node_id() 1065 static inline int invalid_nodeid(u64 nodeid) in invalid_nodeid() argument 1067 return !nodeid || nodeid == FUSE_ROOT_ID; in invalid_nodeid() 1143 struct inode *fuse_iget(struct super_block *sb, u64 nodeid, 1148 int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name, 1155 u64 nodeid, u64 nlookup); [all …]
|
| H A D | dir.c | 352 u64 nodeid, const struct qstr *name, in fuse_lookup_init() argument 357 args->nodeid = nodeid; in fuse_lookup_init() 422 if (!ret && !outarg.nodeid) in fuse_dentry_revalidate() 426 if (outarg.nodeid != get_node_id(inode) || in fuse_dentry_revalidate() 429 outarg.nodeid, 1); in fuse_dentry_revalidate() 551 int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name, in fuse_lookup_name() argument 574 fuse_lookup_init(fm->fc, &args, nodeid, name, outarg); in fuse_lookup_name() 577 if (err || !outarg->nodeid) in fuse_lookup_name() 583 if (outarg->nodeid == FUSE_ROOT_ID && outarg->generation != 0) { in fuse_lookup_name() 588 *inode = fuse_iget(sb, outarg->nodeid, outarg->generation, in fuse_lookup_name() [all …]
|
| H A D | file.c | 26 static int fuse_send_open(struct fuse_mount *fm, u64 nodeid, in fuse_send_open() argument 44 args.nodeid = nodeid; in fuse_send_open() 129 struct fuse_file *fuse_file_open(struct fuse_mount *fm, u64 nodeid, in fuse_file_open() argument 158 err = fuse_send_open(fm, nodeid, open_flags, opcode, outargp); in fuse_file_open() 180 ff->nodeid = nodeid; in fuse_file_open() 185 int fuse_do_open(struct fuse_mount *fm, u64 nodeid, struct file *file, in fuse_do_open() argument 188 struct fuse_file *ff = fuse_file_open(fm, nodeid, file->f_flags, isdir); in fuse_do_open() 337 ra->args.nodeid = ff->nodeid; in fuse_prepare_release() 488 args.nodeid = get_node_id(inode); in fuse_flush() 523 args.nodeid = get_node_id(inode); in fuse_fsync_common() [all …]
|
| H A D | dev.c | 425 u64 nodeid, u64 nlookup) in fuse_queue_forget() argument 429 forget->forget_one.nodeid = nodeid; in fuse_queue_forget() 655 req->in.h.nodeid = args->nodeid; in fuse_args_to_req() 1312 .nodeid = forget->forget_one.nodeid, in fuse_read_single_forget() 1766 u64 nodeid; in fuse_notify_store() local 1784 nodeid = outarg.nodeid; in fuse_notify_store() 1789 inode = fuse_ilookup(fc, nodeid, NULL); in fuse_notify_store() 1901 args->nodeid = outarg->nodeid; in fuse_retrieve() 1953 u64 nodeid; in fuse_notify_retrieve() local 1967 nodeid = outarg.nodeid; in fuse_notify_retrieve() [all …]
|
| /linux/include/trace/events/ |
| H A D | dlm.h | 593 __field(int32_t, nodeid) 608 __entry->nodeid = info->nodeid; 620 __entry->flags, __entry->pid, __entry->nodeid, 633 TP_PROTO(int nodeid, int ret), 635 TP_ARGS(nodeid, ret), 638 __field(int, nodeid) 643 __entry->nodeid = nodeid; 647 TP_printk("nodeid=%d ret=%d", __entry->nodeid, __entry->ret) 653 TP_PROTO(int nodeid, int ret), 655 TP_ARGS(nodeid, ret), [all …]
|
| /linux/drivers/nvdimm/ |
| H A D | nd_perf.c | 133 int nodeid; in nvdimm_pmu_cpu_offline() local 156 nodeid = cpu_to_node(cpu); in nvdimm_pmu_cpu_offline() 157 cpumask = cpumask_of_node(nodeid); in nvdimm_pmu_cpu_offline() 219 int nodeid, rc; in nvdimm_pmu_cpu_hotplug_init() local 232 nodeid = dev_to_node(nd_pmu->dev); in nvdimm_pmu_cpu_hotplug_init() 233 cpumask = cpumask_of_node(nodeid); in nvdimm_pmu_cpu_hotplug_init()
|
| /linux/include/uapi/linux/ |
| H A D | fuse.h | 693 uint64_t nodeid; /* Inode ID */ member 708 uint64_t nodeid; member 1038 uint64_t nodeid; member 1099 uint64_t nodeid; member 1107 uint64_t nodeid; member
|
| /linux/tools/testing/selftests/net/ |
| H A D | srv6_end_next_csid_l3vpn_test.sh | 531 local nodeid="$1" 533 printf "${LCNODEFUNC_FMT}" "${nodeid}" 538 local nodeid="$1" 543 lcnodefunc="$(build_csid "${nodeid}")"
|