From e80d780108fd33350f7c4a3032a8d2d06d7b102f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 8 Dec 2017 12:50:28 -0700 Subject: [PATCH] fio: kill td->nr_normal_files It's unused. Signed-off-by: Jens Axboe --- filesetup.c | 3 --- fio.h | 1 - 2 files changed, 4 deletions(-) diff --git a/filesetup.c b/filesetup.c index 1d586b17..30af085d 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1628,8 +1628,6 @@ int add_file(struct thread_data *td, const char *fname, int numjob, int inc) } td->files_index++; - if (f->filetype == FIO_TYPE_FILE) - td->nr_normal_files++; if (td->o.numjobs > 1) set_already_allocated(file_name); @@ -1855,7 +1853,6 @@ void free_release_files(struct thread_data *td) td->o.nr_files = 0; td->o.open_files = 0; td->files_index = 0; - td->nr_normal_files = 0; } void fio_file_reset(struct thread_data *td, struct fio_file *f) diff --git a/fio.h b/fio.h index 6b184c25..8a656461 100644 --- a/fio.h +++ b/fio.h @@ -208,7 +208,6 @@ struct thread_data { unsigned int files_index; unsigned int nr_open_files; unsigned int nr_done_files; - unsigned int nr_normal_files; union { unsigned int next_file; struct frand_state next_file_state; -- 2.25.1