• Home
  • Raw
  • Download

Lines Matching refs:iter

713 	struct dlm_node_iter iter;  in dlm_get_lock_resource()  local
936 dlm_node_iter_init(mle->vote_map, &iter); in dlm_get_lock_resource()
937 while ((nodenum = dlm_node_iter_next(&iter)) >= 0) { in dlm_get_lock_resource()
1164 static void dlm_bitmap_diff_iter_init(struct dlm_bitmap_diff_iter *iter, in dlm_bitmap_diff_iter_init() argument
1171 iter->curnode = -1; in dlm_bitmap_diff_iter_init()
1172 iter->orig_bm = orig_bm; in dlm_bitmap_diff_iter_init()
1173 iter->cur_bm = cur_bm; in dlm_bitmap_diff_iter_init()
1176 p1 = *(iter->orig_bm + i); in dlm_bitmap_diff_iter_init()
1177 p2 = *(iter->cur_bm + i); in dlm_bitmap_diff_iter_init()
1178 iter->diff_bm[i] = (p1 & ~p2) | (p2 & ~p1); in dlm_bitmap_diff_iter_init()
1182 static int dlm_bitmap_diff_iter_next(struct dlm_bitmap_diff_iter *iter, in dlm_bitmap_diff_iter_next() argument
1187 if (iter->curnode >= O2NM_MAX_NODES) in dlm_bitmap_diff_iter_next()
1190 bit = find_next_bit(iter->diff_bm, O2NM_MAX_NODES, in dlm_bitmap_diff_iter_next()
1191 iter->curnode+1); in dlm_bitmap_diff_iter_next()
1193 iter->curnode = O2NM_MAX_NODES; in dlm_bitmap_diff_iter_next()
1198 if (test_bit(bit, iter->orig_bm)) in dlm_bitmap_diff_iter_next()
1203 iter->curnode = bit; in dlm_bitmap_diff_iter_next()
1658 struct dlm_node_iter iter; in dlm_do_assert_master() local
1674 dlm_node_iter_init(nodemap, &iter); in dlm_do_assert_master()
1675 while ((to = dlm_node_iter_next(&iter)) >= 0) { in dlm_do_assert_master()
2170 struct dlm_node_iter iter; in dlm_pre_master_reco_lockres() local
2176 dlm_node_iter_init(dlm->domain_map, &iter); in dlm_pre_master_reco_lockres()
2179 while ((nodenum = dlm_node_iter_next(&iter)) >= 0) { in dlm_pre_master_reco_lockres()
3027 struct dlm_node_iter *iter) in dlm_do_migrate_request() argument
3042 while ((nodenum = dlm_node_iter_next(iter)) >= 0) { in dlm_do_migrate_request()
3052 clear_bit(nodenum, iter->node_map); in dlm_do_migrate_request()
3067 clear_bit(nodenum, iter->node_map); in dlm_do_migrate_request()
3416 struct dlm_node_iter iter; in dlm_finish_migration() local
3420 dlm_node_iter_init(dlm->domain_map, &iter); in dlm_finish_migration()
3421 clear_bit(old_master, iter.node_map); in dlm_finish_migration()
3422 clear_bit(dlm->node_num, iter.node_map); in dlm_finish_migration()
3434 dlm->node_num, &iter); in dlm_finish_migration()
3444 ret = dlm_do_assert_master(dlm, res, iter.node_map, in dlm_finish_migration()
3452 memset(iter.node_map, 0, sizeof(iter.node_map)); in dlm_finish_migration()
3453 set_bit(old_master, iter.node_map); in dlm_finish_migration()
3456 ret = dlm_do_assert_master(dlm, res, iter.node_map, in dlm_finish_migration()