diff options
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r-- | drivers/md/dm-linear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index f043b5f433b2..3921e3bb43c1 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
@@ -74,7 +74,7 @@ static sector_t linear_map_sector(struct dm_target *ti, sector_t bi_sector) | |||
74 | { | 74 | { |
75 | struct linear_c *lc = ti->private; | 75 | struct linear_c *lc = ti->private; |
76 | 76 | ||
77 | return lc->start + (bi_sector - ti->begin); | 77 | return lc->start + dm_target_offset(ti, bi_sector); |
78 | } | 78 | } |
79 | 79 | ||
80 | static void linear_map_bio(struct dm_target *ti, struct bio *bio) | 80 | static void linear_map_bio(struct dm_target *ti, struct bio *bio) |