Home
last modified time | relevance | path

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

12

/fs/ocfs2/
Dstack_o2cb.c265 u8 node_num; in o2cb_cluster_check() local
270 node_num = o2nm_this_node(); in o2cb_cluster_check()
271 if (node_num == O2NM_MAX_NODES) { in o2cb_cluster_check()
287 if (!test_bit(node_num, hbmap)) { in o2cb_cluster_check()
295 set_bit(node_num, netmap); in o2cb_cluster_check()
318 static void o2dlm_eviction_cb(int node_num, void *data) in o2dlm_eviction_cb() argument
323 node_num, conn->cc_namelen, conn->cc_name); in o2dlm_eviction_cb()
325 conn->cc_recovery_handler(node_num, conn->cc_recovery_data); in o2dlm_eviction_cb()
404 int node_num; in o2cb_cluster_this_node() local
406 node_num = o2nm_this_node(); in o2cb_cluster_this_node()
[all …]
Dheartbeat.c63 void ocfs2_do_node_down(int node_num, void *data) in ocfs2_do_node_down() argument
67 BUG_ON(osb->node_num == node_num); in ocfs2_do_node_down()
69 trace_ocfs2_do_node_down(node_num); in ocfs2_do_node_down()
81 ocfs2_recovery_thread(osb, node_num); in ocfs2_do_node_down()
Djournal.c65 int node_num, int slot_num);
126 int i, node_num; in ocfs2_compute_replay_slots() local
147 if (ocfs2_slot_to_node_num_locked(osb, i, &node_num) == -ENOENT) in ocfs2_compute_replay_slots()
247 unsigned int node_num) in __ocfs2_recovery_map_test() argument
255 if (rm->rm_entries[i] == node_num) in __ocfs2_recovery_map_test()
264 unsigned int node_num) in ocfs2_recovery_map_set() argument
269 if (__ocfs2_recovery_map_test(osb, node_num)) { in ocfs2_recovery_map_set()
277 rm->rm_entries[rm->rm_used] = node_num; in ocfs2_recovery_map_set()
285 unsigned int node_num) in ocfs2_recovery_map_clear() argument
293 if (rm->rm_entries[i] == node_num) in ocfs2_recovery_map_clear()
[all …]
Dslot_map.c63 unsigned int node_num);
73 int slot_num, unsigned int node_num) in ocfs2_set_slot() argument
78 si->si_slots[slot_num].sl_node_num = node_num; in ocfs2_set_slot()
252 unsigned int node_num) in __ocfs2_node_num_to_slot() argument
258 (node_num == si->si_slots[i].sl_node_num)) { in __ocfs2_node_num_to_slot()
289 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num) in ocfs2_node_num_to_slot() argument
295 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot()
302 unsigned int *node_num) in ocfs2_slot_to_node_num_locked() argument
314 *node_num = si->si_slots[slot_num].sl_node_num; in ocfs2_slot_to_node_num_locked()
483 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot()
[all …]
Dstackglue.h109 void (*cc_recovery_handler)(int node_num, void *recovery_data);
253 void (*recovery_handler)(int node_num,
264 void (*recovery_handler)(int node_num,
Dslot_map.h38 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
40 unsigned int *node_num);
Dheartbeat.h31 void ocfs2_do_node_down(int node_num, void *data);
Dsuper.h30 int node_num);
Dlocalalloc.h37 int node_num,
Dstackglue.c323 void (*recovery_handler)(int node_num, in ocfs2_cluster_connect() argument
392 void (*recovery_handler)(int node_num, in ocfs2_cluster_connect_agnostic() argument
/fs/ocfs2/dlm/
Ddlmrecovery.c291 dlm->name, ndata->node_num, st); in dlm_print_reco_node_status()
448 (dlm->node_num == dlm->reco.new_master ? "me" : "he"), in dlm_print_recovery_master()
499 if (dlm->reco.new_master == dlm->node_num) in dlm_do_recovery()
539 dlm->name, dlm->reco.dead_node, dlm->node_num); in dlm_do_recovery()
577 ndata->node_num); in dlm_remaster_locks()
579 if (ndata->node_num == dlm->node_num) { in dlm_remaster_locks()
585 status = dlm_request_all_locks(dlm, ndata->node_num, in dlm_remaster_locks()
597 ndata->node_num), in dlm_remaster_locks()
600 "dead? %s\n", ndata->node_num, in dlm_remaster_locks()
601 dlm_is_node_dead(dlm, ndata->node_num) ? in dlm_remaster_locks()
[all …]
Ddlmlock.c133 lock->ml.node != dlm->node_num) { in dlmlock_master()
232 if (res->owner == dlm->node_num) { in dlmlock_remote()
281 dlm->name, dlm->node_num, res->owner); in dlmlock_remote()
310 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
542 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
544 u64 tmpnode = node_num; in dlm_get_next_cookie()
637 if (res->owner == dlm->node_num) in dlmlock()
668 dlm_get_next_cookie(dlm->node_num, &tmpcookie); in dlmlock()
669 lock = dlm_new_lock(mode, dlm->node_num, tmpcookie, lksb); in dlmlock()
708 if (res->owner == dlm->node_num) in dlmlock()
Ddlmmaster.c312 clear_bit(dlm->node_num, mle->vote_map); in dlm_init_mle()
313 clear_bit(dlm->node_num, mle->node_map); in dlm_init_mle()
775 BUG_ON(tmpres->owner == dlm->node_num); in dlm_get_lock_resource()
823 dlm_change_lockres_owner(dlm, res, dlm->node_num); in dlm_get_lock_resource()
853 BUG_ON(mig && mle->master == dlm->node_num); in dlm_get_lock_resource()
879 set_bit(dlm->node_num, mle->maybe_map); in dlm_get_lock_resource()
1045 if (res->owner != dlm->node_num) { in dlm_wait_for_lock_mastery()
1105 if (dlm->node_num <= bit) { in dlm_wait_for_lock_mastery()
1109 mle->master = dlm->node_num; in dlm_wait_for_lock_mastery()
1148 m = dlm->node_num; in dlm_wait_for_lock_mastery()
[all …]
Ddlmdomain.c589 leave_msg.node_idx = dlm->node_num; in dlm_send_one_domain_exit()
620 if (node == dlm->node_num) in dlm_begin_exit_domain()
641 clear_bit(dlm->node_num, dlm->domain_map); in dlm_leave_domain()
988 qr->qr_domain, qr->qr_node, dlm->node_num); in dlm_match_regions()
997 qr->qr_domain, dlm->node_num, qr->qr_node); in dlm_match_regions()
1028 dlm->node_num, qr->qr_node); in dlm_match_regions()
1051 qr->qr_node, dlm->node_num); in dlm_match_regions()
1077 qr->qr_node = dlm->node_num; in dlm_send_regions()
1092 if (i == dlm->node_num) in dlm_send_regions()
1215 qn->qn_nodenum, dlm->node_num); in dlm_match_nodes()
[all …]
Ddlmast.c201 if (res->owner == dlm->node_num) { in dlm_update_lvb()
205 lock->ml.node == dlm->node_num ? "master" : in dlm_update_lvb()
236 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_ast()
256 BUG_ON(lock->ml.node == dlm->node_num); in dlm_do_remote_ast()
272 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_bast()
357 BUG_ON(res->owner == dlm->node_num); in dlm_proxy_ast_handler()
465 past.node_idx = dlm->node_num; in dlm_send_proxy_ast_msg()
Ddlmunlock.c114 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common()
116 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common()
325 if (owner == dlm->node_num) { in dlm_send_remote_unlock_request()
336 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
458 if (res->owner != dlm->node_num) { in dlm_unlock_lock_handler()
628 is_master = (res->owner == dlm->node_num); in dlmunlock()
Ddlmthread.c57 #define dlm_lock_is_remote(dlm, lock) ((lock)->ml.node != (dlm)->node_num)
218 master = (res->owner == dlm->node_num); in dlm_purge_lockres()
534 if ((res->owner == dlm->node_num)) { in __dlm_dirty_lockres()
616 if (lock->ml.node != dlm->node_num) { in dlm_flush_asts()
668 if (lock->ml.node != dlm->node_num) { in dlm_flush_asts()
748 if (res->owner != dlm->node_num) { in dlm_thread()
757 BUG_ON(res->owner != dlm->node_num); in dlm_thread()
Ddlmdomain.h33 int node_num);
Ddlmconvert.c209 if (lock->ml.node == dlm->node_num) in __dlmconvert_master()
384 convert.node_idx = dlm->node_num; in dlm_send_remote_convert_request()
/fs/ocfs2/cluster/
Dheartbeat.h82 int o2hb_check_node_heartbeating(u8 node_num);
83 int o2hb_check_node_heartbeating_no_sem(u8 node_num);
84 int o2hb_check_node_heartbeating_from_callback(u8 node_num);
Dheartbeat.c306 u8 node_num; member
380 msg.node_num = o2nm_this_node(); in o2hb_send_nego_msg()
467 nego_msg->node_num, config_item_name(&reg->hr_item), reg->hr_dev_name); in o2hb_nego_timeout_handler()
468 if (nego_msg->node_num < O2NM_MAX_NODES) in o2hb_nego_timeout_handler()
469 set_bit(nego_msg->node_num, reg->hr_nego_node_bitmap); in o2hb_nego_timeout_handler()
733 int node_num; in o2hb_prepare_block() local
738 node_num = o2nm_this_node(); in o2hb_prepare_block()
739 slot = &reg->hr_slots[node_num]; in o2hb_prepare_block()
749 hb_block->hb_node = node_num; in o2hb_prepare_block()
817 int node_num) in o2hb_queue_node_event() argument
[all …]
Dnodemanager.c43 struct o2nm_node *o2nm_get_node_by_num(u8 node_num) in o2nm_get_node_by_num() argument
47 if (node_num >= O2NM_MAX_NODES || o2nm_single_cluster == NULL) in o2nm_get_node_by_num()
51 node = o2nm_single_cluster->cl_nodes[node_num]; in o2nm_get_node_by_num()
145 u8 node_num = O2NM_MAX_NODES; in o2nm_this_node() local
148 node_num = o2nm_single_cluster->cl_local_node; in o2nm_this_node()
150 return node_num; in o2nm_this_node()
Dtcp.c291 static struct o2net_node * o2net_nn_from_num(u8 node_num) in o2net_nn_from_num() argument
293 BUG_ON(node_num >= ARRAY_SIZE(o2net_nodes)); in o2net_nn_from_num()
294 return &o2net_nodes[node_num]; in o2net_nn_from_num()
1770 static void o2net_hb_node_down_cb(struct o2nm_node *node, int node_num, in o2net_hb_node_down_cb() argument
1773 o2quo_hb_down(node_num); in o2net_hb_node_down_cb()
1778 if (node_num != o2nm_this_node()) in o2net_hb_node_down_cb()
1784 static void o2net_hb_node_up_cb(struct o2nm_node *node, int node_num, in o2net_hb_node_up_cb() argument
1787 struct o2net_node *nn = o2net_nn_from_num(node_num); in o2net_hb_node_up_cb()
1789 o2quo_hb_up(node_num); in o2net_hb_node_up_cb()
1797 if (node_num != o2nm_this_node()) { in o2net_hb_node_up_cb()
Dnodemanager.h78 struct o2nm_node *o2nm_get_node_by_num(u8 node_num);
/fs/ubifs/
Dlpt_commit.c902 static int make_nnode_dirty(struct ubifs_info *c, int node_num, int lnum, in make_nnode_dirty() argument
907 nnode = nnode_lookup(c, node_num); in make_nnode_dirty()
951 static int make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, in make_pnode_dirty() argument
957 pnode = pnode_lookup(c, node_num); in make_pnode_dirty()
1033 static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num, in make_node_dirty() argument
1038 return make_nnode_dirty(c, node_num, lnum, offs); in make_node_dirty()
1040 return make_pnode_dirty(c, node_num, lnum, offs); in make_node_dirty()
1093 int *node_num) in get_lpt_node_type() argument
1099 *node_num = ubifs_unpack_bits(&addr, &pos, c->pcnt_bits); in get_lpt_node_type()
1149 int err, len = c->leb_size, node_type, node_num, node_len, offs; in lpt_gc_lnum() local
[all …]

12