diff options
author | Alasdair G Kergon <agk@redhat.com> | 2010-08-12 05:14:11 +0200 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2010-08-12 05:14:11 +0200 |
commit | b441a262e7d1c56fbe21794c91d7a9c83809113f (patch) | |
tree | cc9acb2c3f7045ff513739fd81bba8a789d713b6 /drivers/md/dm-stripe.c | |
parent | dm: factor out max_io_len_target_boundary (diff) | |
download | linux-b441a262e7d1c56fbe21794c91d7a9c83809113f.tar.xz linux-b441a262e7d1c56fbe21794c91d7a9c83809113f.zip |
dm: use dm_target_offset macro
Use new dm_target_offset() macro to avoid most references to ti->begin
in dm targets.
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 22d5e2fdab8b..779f47a0fe71 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -222,7 +222,7 @@ static int stripe_map(struct dm_target *ti, struct bio *bio, return DM_MAPIO_REMAPPED; } - offset = bio->bi_sector - ti->begin; + offset = dm_target_offset(ti, bio->bi_sector); chunk = offset >> sc->chunk_shift; stripe = sector_div(chunk, sc->stripes); |