Leaves us in a cleaner state, since the zone generation will never
attempt to touch uninitialized data then.
Signed-off-by: Jens Axboe <axboe@fb.com>
__td_zone_gen_index(td, i);
}
-
static int parse_zoned_distribution(struct thread_data *td, const char *input)
{
char *str, *p, *odir, *ddir;
if (!ret)
td_zone_gen_index(td);
+ else {
+ for (i = 0; i < DDIR_RWDIR_CNT; i++)
+ td->o.zone_split_nr[i] = 0;
+ }
return ret;
}