/linux-4.4.14/fs/ocfs2/cluster/ |
H A D | nodemanager.h | 62 struct o2nm_node *cl_nodes[O2NM_MAX_NODES]; 70 unsigned long cl_nodes_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
|
H A D | quorum.c | 61 unsigned long qs_hb_bm[BITS_TO_LONGS(O2NM_MAX_NODES)]; 63 unsigned long qs_conn_bm[BITS_TO_LONGS(O2NM_MAX_NODES)]; 65 unsigned long qs_hold_bm[BITS_TO_LONGS(O2NM_MAX_NODES)]; 113 lowest_hb = find_first_bit(qs->qs_hb_bm, O2NM_MAX_NODES); o2quo_make_decision() 114 if (lowest_hb != O2NM_MAX_NODES) o2quo_make_decision() 183 mlog_bug_on_msg(qs->qs_holds == O2NM_MAX_NODES, o2quo_set_hold() 217 mlog_bug_on_msg(qs->qs_heartbeating == O2NM_MAX_NODES, o2quo_hb_up() 285 mlog_bug_on_msg(qs->qs_connected == O2NM_MAX_NODES, o2quo_conn_up()
|
H A D | ocfs2_nodemanager.h | 33 #define O2NM_MAX_NODES 255 macro
|
H A D | heartbeat.c | 61 static struct list_head o2hb_live_slots[O2NM_MAX_NODES]; 62 static unsigned long o2hb_live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; 242 unsigned long hr_live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; 958 unsigned long configured_nodes[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2hb_do_disk_heartbeat() 959 unsigned long live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2hb_do_disk_heartbeat() 976 O2NM_MAX_NODES, i + 1)) < O2NM_MAX_NODES) { o2hb_do_disk_heartbeat() 980 highest_node = o2hb_highest_node(configured_nodes, O2NM_MAX_NODES); o2hb_do_disk_heartbeat() 981 if (highest_node >= O2NM_MAX_NODES) { o2hb_do_disk_heartbeat() 1013 O2NM_MAX_NODES, i + 1)) < O2NM_MAX_NODES) { o2hb_do_disk_heartbeat() 1151 unsigned long map[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2hb_debug_open() 1301 O2NM_MAX_NODES, o2hb_debug_init() 1384 BUG_ON(bytes < (BITS_TO_LONGS(O2NM_MAX_NODES) * sizeof(unsigned long))); o2hb_fill_node_map_from_callback() 1558 if (tmp > O2NM_MAX_NODES || tmp == 0) o2hb_region_blocks_store() 1700 if (o2nm_this_node() == O2NM_MAX_NODES) o2hb_region_dev_store() 1919 O2NM_MAX_NODES, reg); o2hb_debug_region_init() 1931 0, O2NM_MAX_NODES, reg); o2hb_debug_region_init() 2409 unsigned long testing_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2hb_check_node_heartbeating() 2425 unsigned long testing_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2hb_check_node_heartbeating_no_sem() 2444 unsigned long testing_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2hb_check_node_heartbeating_from_callback() 2466 if (node_num == O2NM_MAX_NODES) { o2hb_check_local_node_heartbeating()
|
H A D | netdebug.c | 458 unsigned long map[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2net_fill_bitmap() 463 while ((i = find_next_bit(map, O2NM_MAX_NODES, i + 1)) < O2NM_MAX_NODES) o2net_fill_bitmap()
|
H A D | nodemanager.c | 47 if (node_num >= O2NM_MAX_NODES || o2nm_single_cluster == NULL) o2nm_get_node_by_num() 145 u8 node_num = O2NM_MAX_NODES; o2nm_this_node() 206 if (tmp >= O2NM_MAX_NODES) o2nm_node_num_store()
|
H A D | tcp.c | 108 static struct o2net_node o2net_nodes[O2NM_MAX_NODES]; 1015 BUG_ON(bytes < (BITS_TO_LONGS(O2NM_MAX_NODES) * sizeof(unsigned long))); o2net_fill_node_map() 1018 for (node = 0; node < O2NM_MAX_NODES; ++node) { o2net_fill_node_map()
|
/linux-4.4.14/fs/ocfs2/ |
H A D | stack_o2cb.c | 267 unsigned long hbmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2cb_cluster_check() 268 unsigned long netmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; o2cb_cluster_check() 271 if (node_num == O2NM_MAX_NODES) { o2cb_cluster_check() 304 while ((i = find_next_bit(hbmap, O2NM_MAX_NODES, o2cb_cluster_check() 305 i + 1)) < O2NM_MAX_NODES) { o2cb_cluster_check() 410 if (node_num >= O2NM_MAX_NODES) o2cb_cluster_this_node()
|
/linux-4.4.14/fs/ocfs2/dlm/ |
H A D | dlmcommon.h | 36 #define DLM_LOCK_RES_OWNER_UNKNOWN O2NM_MAX_NODES 68 unsigned long maybe_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 69 unsigned long vote_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 70 unsigned long response_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 71 unsigned long node_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 115 unsigned long node_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 144 unsigned long live_nodes_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 145 unsigned long domain_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 146 unsigned long exit_domain_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 147 unsigned long recovery_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 335 unsigned long refmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; 437 unsigned long node_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 727 u8 node_map[BITS_TO_BYTES(O2NM_MAX_NODES)]; 768 struct dlm_node_info qn_nodes[O2NM_MAX_NODES]; 1121 bit = find_next_bit(iter->node_map, O2NM_MAX_NODES, iter->curnode+1); dlm_node_iter_next() 1122 if (bit >= O2NM_MAX_NODES) { dlm_node_iter_next() 1123 iter->curnode = O2NM_MAX_NODES; dlm_node_iter_next()
|
H A D | dlmdomain.c | 540 while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, __dlm_print_nodes() 541 node + 1)) < O2NM_MAX_NODES) { __dlm_print_nodes() 616 node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, node + 1); dlm_begin_exit_domain() 617 if (node >= O2NM_MAX_NODES) dlm_begin_exit_domain() 641 while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, dlm_leave_domain() 642 0)) < O2NM_MAX_NODES) { dlm_leave_domain() 849 while (nodenum < O2NM_MAX_NODES) { dlm_query_join_handler() 1066 if (find_next_bit(node_map, O2NM_MAX_NODES, 0) >= O2NM_MAX_NODES) dlm_send_regions() 1089 while ((i = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_regions() 1090 i + 1)) < O2NM_MAX_NODES) { dlm_send_regions() 1184 for (i = 0; i < O2NM_MAX_NODES && !status; ++i) { dlm_match_nodes() 1238 if (find_next_bit(node_map, O2NM_MAX_NODES, 0) >= O2NM_MAX_NODES) dlm_send_nodeinfo() 1248 for (i = 0, count = 0; i < O2NM_MAX_NODES; ++i) { dlm_send_nodeinfo() 1267 while ((i = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_nodeinfo() 1268 i + 1)) < O2NM_MAX_NODES) { dlm_send_nodeinfo() 1401 if (map_size != (BITS_TO_LONGS(O2NM_MAX_NODES) * dlm_send_join_cancels() 1404 "map_size %u != BITS_TO_LONGS(O2NM_MAX_NODES) %u\n", dlm_send_join_cancels() 1405 map_size, (unsigned)BITS_TO_LONGS(O2NM_MAX_NODES)); dlm_send_join_cancels() 1411 while ((node = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_join_cancels() 1412 node + 1)) < O2NM_MAX_NODES) { dlm_send_join_cancels() 1449 byte_copymap(join_msg.node_map, dlm->live_nodes_map, O2NM_MAX_NODES); dlm_request_join() 1551 while ((node = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_join_asserts() 1552 node + 1)) < O2NM_MAX_NODES) { dlm_send_join_asserts() 1579 unsigned long live_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 1580 unsigned long yes_resp_map[BITS_TO_LONGS(O2NM_MAX_NODES)]; 1635 while ((node = find_next_bit(ctxt->live_map, O2NM_MAX_NODES, dlm_try_to_join_domain() 1636 node + 1)) < O2NM_MAX_NODES) { dlm_try_to_join_domain()
|
H A D | dlmdebug.c | 65 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); dlm_print_lockres_refmap() 66 if (bit >= O2NM_MAX_NODES) dlm_print_lockres_refmap() 304 out += stringify_nodemap(mle->maybe_map, O2NM_MAX_NODES, dump_mle() 309 out += stringify_nodemap(mle->vote_map, O2NM_MAX_NODES, dump_mle() 314 out += stringify_nodemap(mle->response_map, O2NM_MAX_NODES, dump_mle() 319 out += stringify_nodemap(mle->node_map, O2NM_MAX_NODES, dump_mle() 548 out += stringify_nodemap(res->refmap, O2NM_MAX_NODES, dump_lockres() 738 out += stringify_nodemap(dlm->domain_map, O2NM_MAX_NODES, debug_state_print() 744 out += stringify_nodemap(dlm->exit_domain_map, O2NM_MAX_NODES, debug_state_print() 750 out += stringify_nodemap(dlm->live_nodes_map, O2NM_MAX_NODES, debug_state_print() 820 out += stringify_nodemap(dlm->recovery_map, O2NM_MAX_NODES, debug_state_print()
|
H A D | dlmmaster.c | 284 mle->master = O2NM_MAX_NODES; dlm_init_mle() 285 mle->new_master = O2NM_MAX_NODES; dlm_init_mle() 852 if (mig || mle->master != O2NM_MAX_NODES) { dlm_get_lock_resource() 886 bit = find_next_bit(dlm->recovery_map, O2NM_MAX_NODES, 0); dlm_get_lock_resource() 887 if (bit < O2NM_MAX_NODES) { dlm_get_lock_resource() 937 bit = find_next_bit(dlm->recovery_map, O2NM_MAX_NODES, 0); dlm_get_lock_resource() 938 if (bit < O2NM_MAX_NODES) { dlm_get_lock_resource() 961 if (mle->master != O2NM_MAX_NODES) { dlm_get_lock_resource() 998 BUG_ON(res->owner == O2NM_MAX_NODES); dlm_get_lock_resource() 1096 if (m != O2NM_MAX_NODES) { dlm_wait_for_lock_mastery() 1104 bit = find_next_bit(mle->maybe_map, O2NM_MAX_NODES, 0); dlm_wait_for_lock_mastery() 1136 if (res->owner == O2NM_MAX_NODES) { dlm_wait_for_lock_mastery() 1181 unsigned long diff_bm[BITS_TO_LONGS(O2NM_MAX_NODES)]; 1202 for (i = 0; i < BITS_TO_LONGS(O2NM_MAX_NODES); i++) { dlm_bitmap_diff_iter_init() 1214 if (iter->curnode >= O2NM_MAX_NODES) dlm_bitmap_diff_iter_next() 1217 bit = find_next_bit(iter->diff_bm, O2NM_MAX_NODES, dlm_bitmap_diff_iter_next() 1219 if (bit >= O2NM_MAX_NODES) { dlm_bitmap_diff_iter_next() 1220 iter->curnode = O2NM_MAX_NODES; dlm_bitmap_diff_iter_next() 1267 O2NM_MAX_NODES, 0); dlm_restart_lock_mastery() 1277 O2NM_MAX_NODES, dlm_restart_lock_mastery() 1279 if (lowest < O2NM_MAX_NODES) { dlm_restart_lock_mastery() 1836 int bit = find_next_bit (mle->maybe_map, O2NM_MAX_NODES, 0); dlm_assert_master_handler() 1837 if (bit >= O2NM_MAX_NODES) { dlm_assert_master_handler() 1952 while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES, dlm_assert_master_handler() 1953 nn+1)) < O2NM_MAX_NODES) { dlm_assert_master_handler() 2122 unsigned long nodemap[BITS_TO_LONGS(O2NM_MAX_NODES)]; dlm_assert_master_worker() 2146 bit = find_next_bit(nodemap, O2NM_MAX_NODES, dlm_assert_master_worker() 2148 if (bit >= O2NM_MAX_NODES) dlm_assert_master_worker() 2310 if (deref->node_idx >= O2NM_MAX_NODES) { dlm_deref_lockres_handler() 2460 node_ref = find_next_bit(res->refmap, O2NM_MAX_NODES, 0); 2461 if (node_ref >= O2NM_MAX_NODES) 2491 BUG_ON(target == O2NM_MAX_NODES); dlm_migrate_lockres() 2702 u8 target = O2NM_MAX_NODES; dlm_empty_lockres() 2711 if (target == O2NM_MAX_NODES) dlm_empty_lockres() 2893 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); 2894 if (bit >= O2NM_MAX_NODES) 2920 u8 nodenum = O2NM_MAX_NODES; dlm_pick_migration_target() 2941 noderef = find_next_bit(res->refmap, O2NM_MAX_NODES, 2943 if (noderef >= O2NM_MAX_NODES) 3239 bit = find_next_bit(mle->maybe_map, O2NM_MAX_NODES, 0); dlm_clean_block_mle() 3478 BUG_ON((find_next_bit(dlm->domain_map, O2NM_MAX_NODES, 0) < O2NM_MAX_NODES)); dlm_force_free_mles()
|
H A D | dlmthread.c | 113 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, 0); __dlm_lockres_unused() 114 if (bit < O2NM_MAX_NODES) __dlm_lockres_unused()
|
H A D | dlmrecovery.c | 472 bit = find_next_bit (dlm->recovery_map, O2NM_MAX_NODES, 0); dlm_do_recovery() 473 if (bit >= O2NM_MAX_NODES || bit < 0) dlm_do_recovery() 759 num = find_next_bit (dlm->reco.node_map, O2NM_MAX_NODES, num); dlm_init_recovery_area() 760 if (num >= O2NM_MAX_NODES) { dlm_init_recovery_area() 1790 u8 from = O2NM_MAX_NODES; dlm_process_recovery_data()
|