diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2012-12-21 15:23:39 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-12-21 15:23:39 -0500 |
commit | ddbd658f6446a35e4d6ba84812fd71023320cae2 (patch) | |
tree | 6c5bf9fd1cab10d20c21eb8582a5cc73f1bccc85 /drivers/md/dm-snap.c | |
parent | 42bc954f2a4525c9034667dedc9bd1c342208013 (diff) |
dm: move target request nr to dm_target_io
This patch moves target_request_nr from map_info to dm_target_io and
makes it accessible with dm_bio_get_target_request_nr.
This patch is a preparation for the next patch that removes map_info.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 5e88bc437be0..b7e179cdc5af 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -1682,7 +1682,7 @@ static int snapshot_merge_map(struct dm_target *ti, struct bio *bio, | |||
1682 | chunk_t chunk; | 1682 | chunk_t chunk; |
1683 | 1683 | ||
1684 | if (bio->bi_rw & REQ_FLUSH) { | 1684 | if (bio->bi_rw & REQ_FLUSH) { |
1685 | if (!map_context->target_request_nr) | 1685 | if (!dm_bio_get_target_request_nr(bio)) |
1686 | bio->bi_bdev = s->origin->bdev; | 1686 | bio->bi_bdev = s->origin->bdev; |
1687 | else | 1687 | else |
1688 | bio->bi_bdev = s->cow->bdev; | 1688 | bio->bi_bdev = s->cow->bdev; |