[DRBD-cvs] drbd by phil; Fix for an other alpha/i386 problem.
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Mon, 5 Jul 2004 16:38:43 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_int.h
Log Message:
Fix for an other alpha/i386 problem.
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/drbd_int.h,v
retrieving revision 1.58.2.183
retrieving revision 1.58.2.184
diff -u -3 -r1.58.2.183 -r1.58.2.184
--- drbd_int.h 5 Jul 2004 13:32:58 -0000 1.58.2.183
+++ drbd_int.h 5 Jul 2004 14:38:37 -0000 1.58.2.184
@@ -877,8 +877,9 @@
/* I want the packet to fit within one page
* THINK maybe use a special bitmap header,
* including offset and compression scheme and whatnot
+ * Do not use PAGE_SIZE here! Use a architecture agnostic constant!
*/
-#define BM_PACKET_WORDS ((PAGE_SIZE-sizeof(Drbd_Header))/sizeof(long))
+#define BM_PACKET_WORDS ((4096-sizeof(Drbd_Header))/sizeof(long))
/* the extent in "PER_EXTENT" below is an activity log extent
* we need that many (long words/bytes) to store the bitmap