From: Alasdair G Kergon Date: Wed, 28 Mar 2012 17:41:28 +0000 (+0100) Subject: dm thin: use dm_target_offset X-Git-Tag: MMI-PSA29.97-13-9~17150^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6efd6e83092cd4a7532270bc843de90bb93f6683;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git dm thin: use dm_target_offset Use dm_target_offset wrapper instead of referencing the awkward ti->begin explicitly. Signed-off-by: Alasdair G Kergon --- 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: static int thin_map(struct dm_target *ti, struct bio *bio, union map_info *map_context) { - bio->bi_sector -= ti->begin; + bio->bi_sector = dm_target_offset(ti, bio->bi_sector); return thin_bio_map(ti, bio, map_context); }