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 1c28a0214c66c97f5e210202b5a6cb0086b82225..e53b717affbe4e28a9ea8cb267a87cdc6685fedd 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;
        }
 
                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;
        }
                for (i = 0; i < DDIR_RWDIR_CNT; i++)
                        td->o.zone_split_nr[i] = 0;
        }