projects
/
linux-dmdedup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e20af32
)
Fixing the error in flushrq parameter propagation
author
Vasily Tarasov
<tarasov@vasily.name>
Mon, 26 Jan 2015 20:48:39 +0000
(12:48 -0800)
committer
Vasily Tarasov
<tarasov@vasily.name>
Mon, 26 Jan 2015 20:48:39 +0000
(12:48 -0800)
Flushrq parameter was not propagated properly to dedup_config
structure. This commit fixes this bug.
drivers/md/dm-dedup-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-dedup-target.c
b/drivers/md/dm-dedup-target.c
index 32a928c9d5acccea45d3497094e253798eb5ac03..8aeb3b4abd9b75202db5aad964ad303515a29383 100644
(file)
--- 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);