projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dd9c25
)
dm thin: use dm_target_offset
author
Alasdair G Kergon
<agk@redhat.com>
Wed, 28 Mar 2012 17:41:28 +0000
(18:41 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Wed, 28 Mar 2012 17:41:28 +0000
(18:41 +0100)
Use dm_target_offset wrapper instead of referencing the awkward ti->begin
explicitly.
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-thin.c
b/drivers/md/dm-thin.c
index 2d9e75586d60fcce80d3e80f023ec16cd0bc06e7..7ca2bf2aafaa4a282f56b7ab9d5f8ceec73130f0 100644
(file)
--- 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);
}