Remove old zone gen from options
authorJens Axboe <axboe@kernel.dk>
Tue, 14 Aug 2018 02:54:46 +0000 (20:54 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 14 Aug 2018 02:54:46 +0000 (20:54 -0600)
Forgot to remove this in the previous commit...

Fixes: 077761273931 ("Fix double free of zone cache data")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c

index 1c28a02..e53b717 100644 (file)
--- 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;
        }