aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2013-03-01 17:45:47 -0500
committerAlasdair G Kergon <agk@redhat.com>2013-03-01 17:45:47 -0500
commit55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0 (patch)
tree7fb8ce46abe5e6f4a0a2dbcf2d3c848fdbfe4a56 /drivers/md/dm-snap.c
parentbd2a49b86d9aae0c505dcc99c0a073f9da2cc889 (diff)
dm: rename request variables to bios
Use 'bio' in the name of variables and functions that deal with bios rather than 'request' to avoid confusion with the normal block layer use of 'request'. No functional changes. Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r--drivers/md/dm-snap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 6e45e3774eab..5d78027e07ac 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -1037,7 +1037,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
1037 int i; 1037 int i;
1038 int r = -EINVAL; 1038 int r = -EINVAL;
1039 char *origin_path, *cow_path; 1039 char *origin_path, *cow_path;
1040 unsigned args_used, num_flush_requests = 1; 1040 unsigned args_used, num_flush_bios = 1;
1041 fmode_t origin_mode = FMODE_READ; 1041 fmode_t origin_mode = FMODE_READ;
1042 1042
1043 if (argc != 4) { 1043 if (argc != 4) {
@@ -1047,7 +1047,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
1047 } 1047 }
1048 1048
1049 if (dm_target_is_snapshot_merge(ti)) { 1049 if (dm_target_is_snapshot_merge(ti)) {
1050 num_flush_requests = 2; 1050 num_flush_bios = 2;
1051 origin_mode = FMODE_WRITE; 1051 origin_mode = FMODE_WRITE;
1052 } 1052 }
1053 1053
@@ -1127,7 +1127,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
1127 spin_lock_init(&s->tracked_chunk_lock); 1127 spin_lock_init(&s->tracked_chunk_lock);
1128 1128
1129 ti->private = s; 1129 ti->private = s;
1130 ti->num_flush_requests = num_flush_requests; 1130 ti->num_flush_bios = num_flush_bios;
1131 ti->per_bio_data_size = sizeof(struct dm_snap_tracked_chunk); 1131 ti->per_bio_data_size = sizeof(struct dm_snap_tracked_chunk);
1132 1132
1133 /* Add snapshot to the list of snapshots for this origin */ 1133 /* Add snapshot to the list of snapshots for this origin */
@@ -1691,7 +1691,7 @@ static int snapshot_merge_map(struct dm_target *ti, struct bio *bio)
1691 init_tracked_chunk(bio); 1691 init_tracked_chunk(bio);
1692 1692
1693 if (bio->bi_rw & REQ_FLUSH) { 1693 if (bio->bi_rw & REQ_FLUSH) {
1694 if (!dm_bio_get_target_request_nr(bio)) 1694 if (!dm_bio_get_target_bio_nr(bio))
1695 bio->bi_bdev = s->origin->bdev; 1695 bio->bi_bdev = s->origin->bdev;
1696 else 1696 else
1697 bio->bi_bdev = s->cow->bdev; 1697 bio->bi_bdev = s->cow->bdev;
@@ -2102,7 +2102,7 @@ static int origin_ctr(struct dm_target *ti, unsigned int argc, char **argv)
2102 } 2102 }
2103 2103
2104 ti->private = dev; 2104 ti->private = dev;
2105 ti->num_flush_requests = 1; 2105 ti->num_flush_bios = 1;
2106 2106
2107 return 0; 2107 return 0;
2108} 2108}