aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-stripe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r--drivers/md/dm-stripe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c
index d8837d313f54..ea5e878a30b9 100644
--- a/drivers/md/dm-stripe.c
+++ b/drivers/md/dm-stripe.c
@@ -258,7 +258,7 @@ static int stripe_map_range(struct stripe_c *sc, struct bio *bio,
258 sector_t begin, end; 258 sector_t begin, end;
259 259
260 stripe_map_range_sector(sc, bio->bi_sector, target_stripe, &begin); 260 stripe_map_range_sector(sc, bio->bi_sector, target_stripe, &begin);
261 stripe_map_range_sector(sc, bio->bi_sector + bio_sectors(bio), 261 stripe_map_range_sector(sc, bio_end_sector(bio),
262 target_stripe, &end); 262 target_stripe, &end);
263 if (begin < end) { 263 if (begin < end) {
264 bio->bi_bdev = sc->stripe[target_stripe].dev->bdev; 264 bio->bi_bdev = sc->stripe[target_stripe].dev->bdev;