Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6efd6e83 authored by Alasdair G Kergon's avatar Alasdair G Kergon
Browse files

dm thin: use dm_target_offset



Use dm_target_offset wrapper instead of referencing the awkward ti->begin
explicitly.

Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 2dd9c257
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}