From 81bdb7917b20710c3df6616bdaab21b72bb25f18 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 13 Aug 2018 20:54:46 -0600 Subject: [PATCH] Remove old zone gen from options Forgot to remove this in the previous commit... Fixes: 077761273931 ("Fix double free of zone cache data") Signed-off-by: Jens Axboe --- options.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/options.c b/options.c index 1c28a021..e53b717a 100644 --- a/options.c +++ b/options.c @@ -1013,9 +1013,7 @@ static int parse_zoned_distribution(struct thread_data *td, const char *input, return ret; } - if (!ret) - td_zone_gen_index(td); - else { + if (ret) { for (i = 0; i < DDIR_RWDIR_CNT; i++) td->o.zone_split_nr[i] = 0; } -- 2.25.1