From 0364aad555392ec691588466381a7de9d5fe3b4e Mon Sep 17 00:00:00 2001 From: Vasily Tarasov Date: Mon, 26 Jan 2015 12:48:39 -0800 Subject: [PATCH] Fixing the error in flushrq parameter propagation Flushrq parameter was not propagated properly to dedup_config structure. This commit fixes this bug. --- drivers/md/dm-dedup-target.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/md/dm-dedup-target.c b/drivers/md/dm-dedup-target.c index 32a928c9d5a..8aeb3b4abd9 100644 --- a/drivers/md/dm-dedup-target.c +++ b/drivers/md/dm-dedup-target.c @@ -602,7 +602,6 @@ static int dm_dedup_ctr(struct dm_target *ti, unsigned int argc, char **argv) uint64_t logical_block_counter = 0; uint64_t physical_block_counter = 0; - uint32_t flushrq = 0; mempool_t *dedup_work_pool = NULL; bool unformatted; @@ -738,7 +737,7 @@ static int dm_dedup_ctr(struct dm_target *ti, unsigned int argc, char **argv) strcpy(dc->crypto_alg, da.hash_algo); dc->crypto_key_size = crypto_key_size; - dc->flushrq = flushrq; + dc->flushrq = da.flushrq; dc->writes_after_flush = 0; r = dm_set_target_max_io_len(ti, dc->sectors_per_block); -- 2.43.0