fio: kill td->nr_normal_files
authorJens Axboe <axboe@kernel.dk>
Fri, 8 Dec 2017 19:50:28 +0000 (12:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Dec 2017 19:50:28 +0000 (12:50 -0700)
It's unused.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
filesetup.c
fio.h

index 1d586b1..30af085 100644 (file)
@@ -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 6b184c2..8a65646 100644 (file)
--- 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;