[DRBD-cvs] drbd by phil; Removed an other explizit number. I thin...

drbd-user@lists.linbit.com drbd-user@lists.linbit.com
Wed, 16 Jun 2004 10:40:42 +0200 (CEST)


DRBD CVS committal

Author  : phil
Module  : drbd

Dir     : drbd/drbd


Modified Files:
      Tag: rel-0_7-branch
	drbd_int.h 


Log Message:
Removed an other explizit number. I think from now on it is possible to
build an DRBD with a 8Megs AL-Extents by simply changing an single define.
(Using 8K BitMap bits does not work since the receiver will not be able
 to handle 8K blocks...)(But the change of a single define would do...)

===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/drbd_int.h,v
retrieving revision 1.58.2.172
retrieving revision 1.58.2.173
diff -u -3 -r1.58.2.172 -r1.58.2.173
--- drbd_int.h	15 Jun 2004 13:42:29 -0000	1.58.2.172
+++ drbd_int.h	16 Jun 2004 08:40:37 -0000	1.58.2.173
@@ -853,10 +853,8 @@
  * _storage_ sector is located in */
 #define BM_SECT_TO_EXT(x)   ((x)>>(BM_EXT_SIZE_B-9))
 
-/* in one sector of the bitmap, we have 1<<12 bits,
- * accounting for this many activity_log extents.
- */
-#define AL_EXT_PER_BM_SECT  (1 << (12-(AL_EXTENT_SIZE_B - BM_BLOCK_SIZE_B)))
+/* in one sector of the bitmap, we have this many activity_log extents. */
+#define AL_EXT_PER_BM_SECT  (1 << (BM_EXT_SIZE_B - AL_EXTENT_SIZE_B)
 
 
 /* I want the packet to fit within one page