diff options
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 22d5e2fdab8b..779f47a0fe71 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -222,7 +222,7 @@ static int stripe_map(struct dm_target *ti, struct bio *bio, | |||
222 | return DM_MAPIO_REMAPPED; | 222 | return DM_MAPIO_REMAPPED; |
223 | } | 223 | } |
224 | 224 | ||
225 | offset = bio->bi_sector - ti->begin; | 225 | offset = dm_target_offset(ti, bio->bi_sector); |
226 | chunk = offset >> sc->chunk_shift; | 226 | chunk = offset >> sc->chunk_shift; |
227 | stripe = sector_div(chunk, sc->stripes); | 227 | stripe = sector_div(chunk, sc->stripes); |
228 | 228 | ||