summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.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-thin.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-thin.c')
-rw-r--r--drivers/md/dm-thin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 088f6b34f599..303e11da7c2a 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -1944,7 +1944,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
1944 pt->data_dev = data_dev; 1944 pt->data_dev = data_dev;
1945 pt->low_water_blocks = low_water_blocks; 1945 pt->low_water_blocks = low_water_blocks;
1946 pt->adjusted_pf = pt->requested_pf = pf; 1946 pt->adjusted_pf = pt->requested_pf = pf;
1947 ti->num_flush_requests = 1; 1947 ti->num_flush_bios = 1;
1948 1948
1949 /* 1949 /*
1950 * Only need to enable discards if the pool should pass 1950 * Only need to enable discards if the pool should pass
@@ -1952,7 +1952,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
1952 * processing will cause mappings to be removed from the btree. 1952 * processing will cause mappings to be removed from the btree.
1953 */ 1953 */
1954 if (pf.discard_enabled && pf.discard_passdown) { 1954 if (pf.discard_enabled && pf.discard_passdown) {
1955 ti->num_discard_requests = 1; 1955 ti->num_discard_bios = 1;
1956 1956
1957 /* 1957 /*
1958 * Setting 'discards_supported' circumvents the normal 1958 * Setting 'discards_supported' circumvents the normal
@@ -2593,17 +2593,17 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
2593 if (r) 2593 if (r)
2594 goto bad_thin_open; 2594 goto bad_thin_open;
2595 2595
2596 ti->num_flush_requests = 1; 2596 ti->num_flush_bios = 1;
2597 ti->flush_supported = true; 2597 ti->flush_supported = true;
2598 ti->per_bio_data_size = sizeof(struct dm_thin_endio_hook); 2598 ti->per_bio_data_size = sizeof(struct dm_thin_endio_hook);
2599 2599
2600 /* In case the pool supports discards, pass them on. */ 2600 /* In case the pool supports discards, pass them on. */
2601 if (tc->pool->pf.discard_enabled) { 2601 if (tc->pool->pf.discard_enabled) {
2602 ti->discards_supported = true; 2602 ti->discards_supported = true;
2603 ti->num_discard_requests = 1; 2603 ti->num_discard_bios = 1;
2604 ti->discard_zeroes_data_unsupported = true; 2604 ti->discard_zeroes_data_unsupported = true;
2605 /* Discard requests must be split on a block boundary */ 2605 /* Discard bios must be split on a block boundary */
2606 ti->split_discard_requests = true; 2606 ti->split_discard_bios = true;
2607 } 2607 }
2608 2608
2609 dm_put(pool_md); 2609 dm_put(pool_md);