[DRBD-cvs] drbd by phil; micro fixes.

drbd-user@lists.linbit.com drbd-user@lists.linbit.com
Tue, 2 Mar 2004 17:21:13 +0100 (CET)


DRBD CVS committal

Author  : phil
Module  : drbd

Dir     : drbd/drbd


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


Log Message:
micro fixes.

===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Attic/drbd_compat_wrappers.h,v
retrieving revision 1.1.2.24
retrieving revision 1.1.2.25
diff -u -3 -r1.1.2.24 -r1.1.2.25
--- drbd_compat_wrappers.h	17 Feb 2004 09:10:35 -0000	1.1.2.24
+++ drbd_compat_wrappers.h	2 Mar 2004 16:21:08 -0000	1.1.2.25
@@ -17,7 +17,7 @@
  */
 
 /* Returns the number of 512 byte sectors of the device */
-static inline unsigned long drbd_get_capacity(kdev_t dev)
+static inline sector_t long drbd_get_capacity(kdev_t dev)
 {
 	return dev ? blk_size[MAJOR(dev)][MINOR(dev)]<<1 : 0;
 }
@@ -294,7 +294,7 @@
 extern int drbd_merge_bvec_fn(request_queue_t *q, struct bio *bio, struct bio_vec *bv);
 
 /* Returns the number of 512 byte sectors of the device */
-static inline unsigned long drbd_get_capacity(struct block_device *bdev)
+static inline sector_t drbd_get_capacity(struct block_device *bdev)
 {
 	return bdev ? get_capacity(bdev->bd_disk) : 0;
 }