summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid0.c
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2009-01-09 08:31:07 +1100
committerNeilBrown <neilb@suse.de>2009-01-09 08:31:07 +1100
commit6199d3db0fc34f8ada895879d04a353a6ae632bc (patch)
tree5a7d5f4a080abf6c46a87f121a859fd45fd53254 /drivers/md/raid0.c
parent019c4e2f3e02aac4b44003913b54ca4b332e4371 (diff)
md: raid0: Represent zone->zone_offset in sectors.
For the same reason as in the previous patch, rename it from zone_offset to zone_start. Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r--drivers/md/raid0.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index b860536dc89..6e12a358f36 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -155,7 +155,7 @@ static int create_strip_zones (mddev_t *mddev)
}
zone->nb_dev = cnt;
zone->size = smallest->size * cnt;
- zone->zone_offset = 0;
+ zone->zone_start = 0;
current_offset = smallest->size;
curr_zone_offset = zone->size;
@@ -194,7 +194,7 @@ static int create_strip_zones (mddev_t *mddev)
printk("raid0: zone->nb_dev: %d, size: %llu\n",
zone->nb_dev, (unsigned long long)zone->size);
- zone->zone_offset = curr_zone_offset;
+ zone->zone_start = curr_zone_offset * 2;
curr_zone_offset += zone->size;
current_offset = smallest->size;
@@ -437,14 +437,14 @@ static int raid0_make_request (struct request_queue *q, struct bio *bio)
zone = conf->hash_table[x];
}
- while (sector / 2 >= (zone->zone_offset + zone->size))
+ while (sector / 2 >= (zone->zone_start / 2 + zone->size))
zone++;
sect_in_chunk = bio->bi_sector & (chunk_sects - 1);
{
- sector_t x = (sector - zone->zone_offset * 2) >> chunksect_bits;
+ sector_t x = (sector - zone->zone_start) >> chunksect_bits;
sector_div(x, zone->nb_dev);
chunk = x;
@@ -489,8 +489,8 @@ static void raid0_status (struct seq_file *seq, mddev_t *mddev)
seq_printf(seq, "%s/", bdevname(
conf->strip_zone[j].dev[k]->bdev,b));
- seq_printf(seq, "] zo=%d ds=%d s=%d\n",
- conf->strip_zone[j].zone_offset,
+ seq_printf(seq, "] zs=%d ds=%d s=%d\n",
+ conf->strip_zone[j].zone_start,
conf->strip_zone[j].dev_start,
conf->strip_zone[j].size);
}