[Ocfs2-commits] jlbec commits r1968 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Mar 10 17:44:03 CST 2005


Author: jlbec
Signed-off-by: mfasheh
Date: 2005-03-10 17:44:01 -0600 (Thu, 10 Mar 2005)
New Revision: 1968

Modified:
   trunk/fs/ocfs2/suballoc.c
Log:

o In ocfs_block_group_find_clear_bits(), comment the logic for quicker
  readability.

Signed-off-by: mfasheh



Modified: trunk/fs/ocfs2/suballoc.c
===================================================================
--- trunk/fs/ocfs2/suballoc.c	2005-03-10 01:41:42 UTC (rev 1967)
+++ trunk/fs/ocfs2/suballoc.c	2005-03-10 23:44:01 UTC (rev 1968)
@@ -734,6 +734,7 @@
 		} else if (offset == start) {
 			/* we found a zero */
 			found++;
+			/* move start to the next bit to test */
 			start++;
 		} else {
 			/* got a zero after some ones */
@@ -751,6 +752,8 @@
 		}
 	}
 
+	/* XXX: I think the first clause is equivalent to the second
+	 * 	- jlbec */
 	if (found == bits_wanted) {
 		*bit_off = start - found;
 		*bits_found = found;



More information about the Ocfs2-commits mailing list