[DRBD-cvs] drbd by phil; Fix for the (hopefully) last "s390x" Bug...

drbd-user@lists.linbit.com drbd-user@lists.linbit.com
Wed, 7 Jul 2004 16:21:44 +0200 (CEST)


DRBD CVS committal

Author  : phil
Module  : drbd

Dir     : drbd/drbd


Modified Files:
      Tag: rel-0_7-branch
	drbd_bitmap.c 


Log Message:
Fix for the (hopefully) last "s390x" Bug (actually a generic 64 bit bug!)

===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Attic/drbd_bitmap.c,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -u -3 -r1.1.2.13 -r1.1.2.14
--- drbd_bitmap.c	7 Jul 2004 11:38:29 -0000	1.1.2.13
+++ drbd_bitmap.c	7 Jul 2004 14:21:39 -0000	1.1.2.14
@@ -240,7 +240,7 @@
  */
 STATIC int bm_clear_surplus(struct drbd_bitmap * b)
 {
-	const unsigned long mask = (1 << (b->bm_bits & (BITS_PER_LONG-1))) -1;
+	const unsigned long mask = (1UL << (b->bm_bits & (BITS_PER_LONG-1))) -1;
 	size_t w = b->bm_bits >> LN2_BPL;
 	int cleared=0;