dedupe_percentage should work even if compress_percentage is not set
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 77a3abf75437e7e27290cf0e32fc4db7cb3bc7ce..f61fee8cb32240d2d85929eb0d131b009ec0d47d 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -1869,7 +1869,7 @@ void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write,
 {
        struct thread_options *o = &td->o;
 
-       if (o->compress_percentage) {
+       if (o->compress_percentage || o->dedupe_percentage) {
                unsigned int perc = td->o.compress_percentage;
                struct frand_state *rs;
                unsigned int left = max_bs;