summaryrefslogtreecommitdiffstats
path: root/drivers/block/raid0.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/raid0.c')
-rw-r--r--drivers/block/raid0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/raid0.c b/drivers/block/raid0.c
index f37d8e5fb..48055ecea 100644
--- a/drivers/block/raid0.c
+++ b/drivers/block/raid0.c
@@ -258,7 +258,7 @@ static int raid0_make_request (request_queue_t *q, mddev_t *mddev,
sect_in_chunk = bh->b_rsector & ((chunk_size<<1) -1);
chunk = (block - zone->zone_offset) / (zone->nb_dev << chunksize_bits);
tmp_dev = zone->dev[(block >> chunksize_bits) % zone->nb_dev];
- rsect = ((chunk << chunksize_bits) + zone->dev_offset)<<1
+ rsect = (((chunk << chunksize_bits) + zone->dev_offset)<<1)
+ sect_in_chunk;
/*