[Ocfs2-commits] mfasheh commits r1969 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Mar 10 17:56:55 CST 2005


Author: mfasheh
Signed-off-by: jlbec
Date: 2005-03-10 17:56:53 -0600 (Thu, 10 Mar 2005)
New Revision: 1969

Modified:
   trunk/fs/ocfs2/suballoc.c
Log:
* Fix a potential bug with best size calculation. We wouldn't hit this
  today, but I don't think it's a good idea to wait until we need to
  hunt this down.

Signed-off-by: jlbec



Modified: trunk/fs/ocfs2/suballoc.c
===================================================================
--- trunk/fs/ocfs2/suballoc.c	2005-03-10 23:44:01 UTC (rev 1968)
+++ trunk/fs/ocfs2/suballoc.c	2005-03-10 23:56:53 UTC (rev 1969)
@@ -757,7 +757,7 @@
 	if (found == bits_wanted) {
 		*bit_off = start - found;
 		*bits_found = found;
-	} else if (best_offset) {
+	} else if (best_size) {
 		*bit_off = best_offset;
 		*bits_found = best_size;
 	} else {



More information about the Ocfs2-commits mailing list