From: Vasily Tarasov Date: Mon, 26 Jan 2015 20:48:39 +0000 (-0800) Subject: Fixing the error in flushrq parameter propagation X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=0364aad555392ec691588466381a7de9d5fe3b4e;p=linux-dmdedup.git Fixing the error in flushrq parameter propagation Flushrq parameter was not propagated properly to dedup_config structure. This commit fixes this bug. --- 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);