aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/cluster/heartbeat.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index 292a13b05b6e..73920ffda05b 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -946,23 +946,9 @@ out:
946 return changed; 946 return changed;
947} 947}
948 948
949/* This could be faster if we just implmented a find_last_bit, but I 949static int o2hb_highest_node(unsigned long *nodes, int numbits)
950 * don't think the circumstances warrant it. */
951static int o2hb_highest_node(unsigned long *nodes,
952 int numbits)
953{ 950{
954 int highest, node; 951 return find_last_bit(nodes, numbits);
955
956 highest = numbits;
957 node = -1;
958 while ((node = find_next_bit(nodes, numbits, node + 1)) != -1) {
959 if (node >= numbits)
960 break;
961
962 highest = node;
963 }
964
965 return highest;
966} 952}
967 953
968static int o2hb_do_disk_heartbeat(struct o2hb_region *reg) 954static int o2hb_do_disk_heartbeat(struct o2hb_region *reg)