aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm-thin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 2d9e75586d60..7ca2bf2aafaa 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -2389,7 +2389,7 @@ out_unlock:
2389static int thin_map(struct dm_target *ti, struct bio *bio, 2389static int thin_map(struct dm_target *ti, struct bio *bio,
2390 union map_info *map_context) 2390 union map_info *map_context)
2391{ 2391{
2392 bio->bi_sector -= ti->begin; 2392 bio->bi_sector = dm_target_offset(ti, bio->bi_sector);
2393 2393
2394 return thin_bio_map(ti, bio, map_context); 2394 return thin_bio_map(ti, bio, map_context);
2395} 2395}