Home
last modified time | relevance | path

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

12

/fs/ocfs2/
Dstack_o2cb.c255 u8 node_num; in o2cb_cluster_check() local
260 node_num = o2nm_this_node(); in o2cb_cluster_check()
261 if (node_num == O2NM_MAX_NODES) { in o2cb_cluster_check()
277 if (!test_bit(node_num, hbmap)) { in o2cb_cluster_check()
285 set_bit(node_num, netmap); in o2cb_cluster_check()
308 static void o2dlm_eviction_cb(int node_num, void *data) in o2dlm_eviction_cb() argument
313 node_num, conn->cc_namelen, conn->cc_name); in o2dlm_eviction_cb()
315 conn->cc_recovery_handler(node_num, conn->cc_recovery_data); in o2dlm_eviction_cb()
394 int node_num; in o2cb_cluster_this_node() local
396 node_num = o2nm_this_node(); in o2cb_cluster_this_node()
[all …]
Dheartbeat.c47 void ocfs2_do_node_down(int node_num, void *data) in ocfs2_do_node_down() argument
51 BUG_ON(osb->node_num == node_num); in ocfs2_do_node_down()
53 trace_ocfs2_do_node_down(node_num); in ocfs2_do_node_down()
65 ocfs2_recovery_thread(osb, node_num); in ocfs2_do_node_down()
Djournal.c49 int node_num, int slot_num);
110 int i, node_num; in ocfs2_compute_replay_slots() local
131 if (ocfs2_slot_to_node_num_locked(osb, i, &node_num) == -ENOENT) in ocfs2_compute_replay_slots()
232 unsigned int node_num) in __ocfs2_recovery_map_test() argument
240 if (rm->rm_entries[i] == node_num) in __ocfs2_recovery_map_test()
249 unsigned int node_num) in ocfs2_recovery_map_set() argument
254 if (__ocfs2_recovery_map_test(osb, node_num)) { in ocfs2_recovery_map_set()
262 rm->rm_entries[rm->rm_used] = node_num; in ocfs2_recovery_map_set()
270 unsigned int node_num) in ocfs2_recovery_map_clear() argument
278 if (rm->rm_entries[i] == node_num) in ocfs2_recovery_map_clear()
[all …]
Dslot_map.c45 unsigned int node_num);
55 int slot_num, unsigned int node_num) in ocfs2_set_slot() argument
60 si->si_slots[slot_num].sl_node_num = node_num; in ocfs2_set_slot()
234 unsigned int node_num) in __ocfs2_node_num_to_slot() argument
240 (node_num == si->si_slots[i].sl_node_num)) { in __ocfs2_node_num_to_slot()
271 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num) in ocfs2_node_num_to_slot() argument
277 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot()
284 unsigned int *node_num) in ocfs2_slot_to_node_num_locked() argument
296 *node_num = si->si_slots[slot_num].sl_node_num; in ocfs2_slot_to_node_num_locked()
461 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot()
[all …]
Dstackglue.h99 void (*cc_recovery_handler)(int node_num, void *recovery_data);
243 void (*recovery_handler)(int node_num,
254 void (*recovery_handler)(int node_num,
Dslot_map.h22 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
24 unsigned int *node_num);
Dheartbeat.h15 void ocfs2_do_node_down(int node_num, void *data);
Dlocalalloc.h21 int node_num,
Dstackglue.c307 void (*recovery_handler)(int node_num, in ocfs2_cluster_connect() argument
376 void (*recovery_handler)(int node_num, in ocfs2_cluster_connect_agnostic() argument
Djournal.h180 int node_num);
/fs/ocfs2/dlm/
Ddlmrecovery.c267 dlm->name, ndata->node_num, st); in dlm_print_reco_node_status()
423 (dlm->node_num == dlm->reco.new_master ? "me" : "he"), in dlm_print_recovery_master()
482 if (dlm->reco.new_master == dlm->node_num) in dlm_do_recovery()
522 dlm->name, dlm->reco.dead_node, dlm->node_num); in dlm_do_recovery()
560 ndata->node_num); in dlm_remaster_locks()
562 if (ndata->node_num == dlm->node_num) { in dlm_remaster_locks()
568 status = dlm_request_all_locks(dlm, ndata->node_num, in dlm_remaster_locks()
580 ndata->node_num), in dlm_remaster_locks()
583 "dead? %s\n", ndata->node_num, in dlm_remaster_locks()
584 dlm_is_node_dead(dlm, ndata->node_num) ? in dlm_remaster_locks()
[all …]
Ddlmlock.c115 lock->ml.node != dlm->node_num) { in dlmlock_master()
214 if (res->owner == dlm->node_num) { in dlmlock_remote()
263 dlm->name, dlm->node_num, res->owner); in dlmlock_remote()
292 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
524 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
526 u64 tmpnode = node_num; in dlm_get_next_cookie()
619 if (res->owner == dlm->node_num) in dlmlock()
650 dlm_get_next_cookie(dlm->node_num, &tmpcookie); in dlmlock()
651 lock = dlm_new_lock(mode, dlm->node_num, tmpcookie, lksb); in dlmlock()
690 if (res->owner == dlm->node_num) in dlmlock()
Ddlmmaster.c295 clear_bit(dlm->node_num, mle->vote_map); in dlm_init_mle()
296 clear_bit(dlm->node_num, mle->node_map); in dlm_init_mle()
753 BUG_ON(tmpres->owner == dlm->node_num); in dlm_get_lock_resource()
801 dlm_change_lockres_owner(dlm, res, dlm->node_num); in dlm_get_lock_resource()
831 BUG_ON(mig && mle->master == dlm->node_num); in dlm_get_lock_resource()
857 set_bit(dlm->node_num, mle->maybe_map); in dlm_get_lock_resource()
1023 if (res->owner != dlm->node_num) { in dlm_wait_for_lock_mastery()
1083 if (dlm->node_num <= bit) { in dlm_wait_for_lock_mastery()
1087 mle->master = dlm->node_num; in dlm_wait_for_lock_mastery()
1119 m = dlm->node_num; in dlm_wait_for_lock_mastery()
[all …]
Ddlmdomain.c584 leave_msg.node_idx = dlm->node_num; in dlm_send_one_domain_exit()
615 if (node == dlm->node_num) in dlm_begin_exit_domain()
636 clear_bit(dlm->node_num, dlm->domain_map); in dlm_leave_domain()
969 qr->qr_domain, qr->qr_node, dlm->node_num); in dlm_match_regions()
978 qr->qr_domain, dlm->node_num, qr->qr_node); in dlm_match_regions()
1009 dlm->node_num, qr->qr_node); in dlm_match_regions()
1032 qr->qr_node, dlm->node_num); in dlm_match_regions()
1058 qr->qr_node = dlm->node_num; in dlm_send_regions()
1073 if (i == dlm->node_num) in dlm_send_regions()
1196 qn->qn_nodenum, dlm->node_num); in dlm_match_nodes()
[all …]
Ddlmast.c174 if (res->owner == dlm->node_num) { in dlm_update_lvb()
178 lock->ml.node == dlm->node_num ? "master" : in dlm_update_lvb()
207 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_ast()
227 BUG_ON(lock->ml.node == dlm->node_num); in dlm_do_remote_ast()
243 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_bast()
328 BUG_ON(res->owner == dlm->node_num); in dlm_proxy_ast_handler()
436 past.node_idx = dlm->node_num; in dlm_send_proxy_ast_msg()
Ddlmunlock.c98 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common()
100 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common()
323 if (owner == dlm->node_num) { in dlm_send_remote_unlock_request()
334 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
456 if (res->owner != dlm->node_num) { in dlm_unlock_lock_handler()
626 is_master = (res->owner == dlm->node_num); in dlmunlock()
Ddlmthread.c199 master = (res->owner == dlm->node_num); in dlm_purge_lockres()
515 if (res->owner == dlm->node_num) { in __dlm_dirty_lockres()
597 if (lock->ml.node != dlm->node_num) { in dlm_flush_asts()
649 if (lock->ml.node != dlm->node_num) { in dlm_flush_asts()
728 if (res->owner != dlm->node_num) { in dlm_thread()
737 BUG_ON(res->owner != dlm->node_num); in dlm_thread()
Ddlmdomain.h39 int node_num);
Ddlmconvert.c192 if (lock->ml.node == dlm->node_num) in __dlmconvert_master()
367 convert.node_idx = dlm->node_num; in dlm_send_remote_convert_request()
/fs/ubifs/
Dlpt_commit.c860 static int make_nnode_dirty(struct ubifs_info *c, int node_num, int lnum, in make_nnode_dirty() argument
865 nnode = nnode_lookup(c, node_num); in make_nnode_dirty()
909 static int make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, in make_pnode_dirty() argument
915 pnode = ubifs_pnode_lookup(c, node_num); in make_pnode_dirty()
991 static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num, in make_node_dirty() argument
996 return make_nnode_dirty(c, node_num, lnum, offs); in make_node_dirty()
998 return make_pnode_dirty(c, node_num, lnum, offs); in make_node_dirty()
1051 int *node_num) in get_lpt_node_type() argument
1057 *node_num = ubifs_unpack_bits(c, &addr, &pos, c->pcnt_bits); in get_lpt_node_type()
1107 int err, len = c->leb_size, node_type, node_num, node_len, offs; in lpt_gc_lnum() local
[all …]
/fs/ocfs2/cluster/
Dheartbeat.c280 u8 node_num; member
354 msg.node_num = o2nm_this_node(); in o2hb_send_nego_msg()
441 nego_msg->node_num, config_item_name(&reg->hr_item), reg->hr_dev_name); in o2hb_nego_timeout_handler()
442 if (nego_msg->node_num < O2NM_MAX_NODES) in o2hb_nego_timeout_handler()
443 set_bit(nego_msg->node_num, reg->hr_nego_node_bitmap); in o2hb_nego_timeout_handler()
707 int node_num; in o2hb_prepare_block() local
712 node_num = o2nm_this_node(); in o2hb_prepare_block()
713 slot = &reg->hr_slots[node_num]; in o2hb_prepare_block()
723 hb_block->hb_node = node_num; in o2hb_prepare_block()
791 int node_num) in o2hb_queue_node_event() argument
[all …]
Dheartbeat.h65 int o2hb_check_node_heartbeating_no_sem(u8 node_num);
66 int o2hb_check_node_heartbeating_from_callback(u8 node_num);
Dnodemanager.c30 struct o2nm_node *o2nm_get_node_by_num(u8 node_num) in o2nm_get_node_by_num() argument
34 if (node_num >= O2NM_MAX_NODES || o2nm_single_cluster == NULL) in o2nm_get_node_by_num()
38 node = o2nm_single_cluster->cl_nodes[node_num]; in o2nm_get_node_by_num()
132 u8 node_num = O2NM_MAX_NODES; in o2nm_this_node() local
135 node_num = o2nm_single_cluster->cl_local_node; in o2nm_this_node()
137 return node_num; in o2nm_this_node()
Dtcp.c276 static struct o2net_node * o2net_nn_from_num(u8 node_num) in o2net_nn_from_num() argument
278 BUG_ON(node_num >= ARRAY_SIZE(o2net_nodes)); in o2net_nn_from_num()
279 return &o2net_nodes[node_num]; in o2net_nn_from_num()
1707 static void o2net_hb_node_down_cb(struct o2nm_node *node, int node_num, in o2net_hb_node_down_cb() argument
1710 o2quo_hb_down(node_num); in o2net_hb_node_down_cb()
1715 if (node_num != o2nm_this_node()) in o2net_hb_node_down_cb()
1721 static void o2net_hb_node_up_cb(struct o2nm_node *node, int node_num, in o2net_hb_node_up_cb() argument
1724 struct o2net_node *nn = o2net_nn_from_num(node_num); in o2net_hb_node_up_cb()
1726 o2quo_hb_up(node_num); in o2net_hb_node_up_cb()
1734 if (node_num != o2nm_this_node()) { in o2net_hb_node_up_cb()
Dnodemanager.h61 struct o2nm_node *o2nm_get_node_by_num(u8 node_num);

12