mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 14:40:12 -04:00
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 <agk@redhat.com>
This commit is contained in:
@@ -2389,7 +2389,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user