[DRBD-cvs] svn commit by lars - r2368 - in trunk/drbd: . linux - use the right prototype for _drbd_send_ack

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Sat Aug 12 01:11:32 CEST 2006


to avoid tru
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: lars
Date: 2006-08-12 01:11:31 +0200 (Sat, 12 Aug 2006)
New Revision: 2368

Modified:
   trunk/drbd/drbd_main.c
   trunk/drbd/linux/drbd_config.h
Log:
use the right prototype for _drbd_send_ack
to avoid truncating sector number to 0 ALWAYS
in case CONFIG_LBD is NOT set.

default to compile in the tracing stuff,
now we can toggle it at runtime.



Modified: trunk/drbd/drbd_main.c
===================================================================
--- trunk/drbd/drbd_main.c	2006-08-11 23:07:59 UTC (rev 2367)
+++ trunk/drbd/drbd_main.c	2006-08-11 23:11:31 UTC (rev 2368)
@@ -1521,9 +1521,9 @@
  * This helper function expects the sector and block_id parameter already
  * in big endian!
  */ 
-static int _drbd_send_ack(drbd_dev *mdev, Drbd_Packet_Cmd cmd, 
-			  sector_t sector,
-			  unsigned int blksize,
+static int _drbd_send_ack(drbd_dev *mdev, Drbd_Packet_Cmd cmd,
+			  u64 sector,
+			  u32 blksize,
 			  u64 block_id)
 {
 	int ok;

Modified: trunk/drbd/linux/drbd_config.h
===================================================================
--- trunk/drbd/linux/drbd_config.h	2006-08-11 23:07:59 UTC (rev 2367)
+++ trunk/drbd/linux/drbd_config.h	2006-08-11 23:11:31 UTC (rev 2368)
@@ -38,7 +38,7 @@
 
 // Define this to enable printing of packets under control of dump_packets
 // module parameter (/sys/module/drbd/parameters/dump_packets)
-//#define DUMP_EACH_PACKET
+#define DUMP_EACH_PACKET
 
 // Dump every hour the usage / not usage of zero copy IO
 //#define SHOW_SENDPAGE_USAGE



More information about the drbd-cvs mailing list