[Ocfs2-commits] smushran commits r1548 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Oct 5 17:33:28 CDT 2004
Author: smushran
Date: 2004-10-05 17:33:26 -0500 (Tue, 05 Oct 2004)
New Revision: 1548
Modified:
trunk/src/vote.c
Log:
fixed code to account for different behavior of find_next_bit on i386 and ia64
Modified: trunk/src/vote.c
===================================================================
--- trunk/src/vote.c 2004-10-05 20:44:23 UTC (rev 1547)
+++ trunk/src/vote.c 2004-10-05 22:33:26 UTC (rev 1548)
@@ -980,7 +980,7 @@
int bit, prev=0;
while (1) {
bit = find_next_bit (mask->map, mask->num_nodes, prev);
- if (bit > mask->num_nodes)
+ if (bit >= mask->num_nodes)
break;
ocfs_node_map_clear_bit(target, bit);
prev = bit+1;
@@ -993,7 +993,7 @@
int bit, prev=0;
while (1) {
bit = find_next_bit (mask->map, mask->num_nodes, prev);
- if (bit > mask->num_nodes)
+ if (bit >= mask->num_nodes)
break;
ocfs_node_map_set_bit(target, bit);
prev = bit+1;
More information about the Ocfs2-commits
mailing list