[DRBD-cvs] svn commit by phil - r2114 - trunk/drbd - min/max ;)

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Sun Mar 12 10:40:27 CET 2006


Author: phil
Date: 2006-03-12 10:40:26 +0100 (Sun, 12 Mar 2006)
New Revision: 2114

Modified:
   trunk/drbd/drbd_bitmap.c
Log:
min/max ;)


Modified: trunk/drbd/drbd_bitmap.c
===================================================================
--- trunk/drbd/drbd_bitmap.c	2006-03-12 08:54:09 UTC (rev 2113)
+++ trunk/drbd/drbd_bitmap.c	2006-03-12 09:40:26 UTC (rev 2114)
@@ -786,7 +786,7 @@
 	spin_lock_irq(&b->bm_lock);
 	BM_PARANOIA_CHECK();
 
-	b->bm_fo = max_t(unsigned long, i, b->bm_bits);
+	b->bm_fo = min_t(unsigned long, i, b->bm_bits);
 
 	spin_unlock_irq(&b->bm_lock);
 }



More information about the drbd-cvs mailing list