[DRBD-cvs] svn commit by phil - r2113 - trunk/drbd - I guess this
is the last fix necessary to make the sync
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Sun Mar 12 09:54:09 CET 2006
Author: phil
Date: 2006-03-12 09:54:09 +0100 (Sun, 12 Mar 2006)
New Revision: 2113
Modified:
trunk/drbd/drbd_bitmap.c
Log:
I guess this is the last fix necessary to make the syncer terminate
in every case.
Modified: trunk/drbd/drbd_bitmap.c
===================================================================
--- trunk/drbd/drbd_bitmap.c 2006-03-12 08:38:31 UTC (rev 2112)
+++ trunk/drbd/drbd_bitmap.c 2006-03-12 08:54:09 UTC (rev 2113)
@@ -786,11 +786,7 @@
spin_lock_irq(&b->bm_lock);
BM_PARANOIA_CHECK();
- if (i < b->bm_bits) {
- b->bm_fo = i;
- } else {
- b->bm_fo = 0;
- }
+ b->bm_fo = max_t(unsigned long, i, b->bm_bits);
spin_unlock_irq(&b->bm_lock);
}
More information about the drbd-cvs
mailing list