ocfs2: use bitmap API in fill_node_map
[linux-2.6-microblaze.git] / fs / ocfs2 / dlm / dlmdomain.c
index c4eccd4..f46941f 100644 (file)
@@ -1604,7 +1604,7 @@ static int dlm_try_to_join_domain(struct dlm_ctxt *dlm)
        /* group sem locking should work for us here -- we're already
         * registered for heartbeat events so filling this should be
         * atomic wrt getting those handlers called. */
-       o2hb_fill_node_map(dlm->live_nodes_map, sizeof(dlm->live_nodes_map));
+       o2hb_fill_node_map(dlm->live_nodes_map, O2NM_MAX_NODES);
 
        spin_lock(&dlm->spinlock);
        memcpy(ctxt->live_map, dlm->live_nodes_map, sizeof(ctxt->live_map));