summaryrefslogtreecommitdiff
path: root/include/linux/raid
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/raid')
-rw-r--r--include/linux/raid/md.h2
-rw-r--r--include/linux/raid/md_k.h6
-rw-r--r--include/linux/raid/raid0.h6
3 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h
index e8acacc1adb2..ff0538dae18c 100644
--- a/include/linux/raid/md.h
+++ b/include/linux/raid/md.h
@@ -60,7 +60,7 @@
#define MD_MINOR_VERSION 90
#define MD_PATCHLEVEL_VERSION 0
-extern int md_size[MAX_MD_DEVS];
+extern sector_t md_size[MAX_MD_DEVS];
extern inline char * bdev_partition_name (struct block_device *bdev)
{
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index 2f72d0213f99..b088c30951bd 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -144,7 +144,7 @@ struct mdk_rdev_s
{
struct list_head same_set; /* RAID devices within the same set */
- unsigned long size; /* Device size (in blocks) */
+ sector_t size; /* Device size (in blocks) */
mddev_t *mddev; /* RAID array if running */
unsigned long last_events; /* IO event timestamp */
@@ -152,7 +152,7 @@ struct mdk_rdev_s
struct page *sb_page;
mdp_super_t *sb;
- unsigned long sb_offset;
+ sector_t sb_offset;
/* A device can be in one of three states based on two flags:
* Not working: faulty==1 in_sync==0
@@ -350,5 +350,5 @@ do { \
__wait_disk_event(wq, condition); \
} while (0)
-#endif
+#endif
diff --git a/include/linux/raid/raid0.h b/include/linux/raid/raid0.h
index 0b93729576cd..c2d5dcd52fab 100644
--- a/include/linux/raid/raid0.h
+++ b/include/linux/raid/raid0.h
@@ -5,9 +5,9 @@
struct strip_zone
{
- unsigned long zone_offset; /* Zone offset in md_dev */
- unsigned long dev_offset; /* Zone offset in real dev */
- unsigned long size; /* Zone size */
+ sector_t zone_offset; /* Zone offset in md_dev */
+ sector_t dev_offset; /* Zone offset in real dev */
+ sector_t size; /* Zone size */
int nb_dev; /* # of devices attached to the zone */
mdk_rdev_t *dev[MD_SB_DISKS]; /* Devices attached to the zone */
};