From 3397806e19bf63a88309a4e48ae43fd1e64bbf95 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 4 Dec 2014 08:27:21 -0700 Subject: [PATCH] Don't clear 'refill_buffers' unconditionally for pattern fill If we have asked for a specific buffer compression, then we need the refill option (if set). Signed-off-by: Jens Axboe --- options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options.c b/options.c index 23469d8d..c3c62927 100644 --- a/options.c +++ b/options.c @@ -1031,7 +1031,8 @@ static int str_buffer_pattern_cb(void *data, const char *input) &td->o.buffer_pattern_bytes); if (!ret && td->o.buffer_pattern_bytes) { - td->o.refill_buffers = 0; + if (!td->o.compress_percentage) + td->o.refill_buffers = 0; td->o.scramble_buffers = 0; td->o.zero_buffers = 0; } else { -- 2.25.1