From bf651609cda6c8968edb49d80efe7ee007983f61 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Tue, 7 Mar 2017 22:13:06 +0200 Subject: [PATCH] Define struct file_name as a file local structure This is just an one-off structure for filesetup.c to walk through all the files (among all jobs), so it can be file local. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- file.h | 5 ----- filesetup.c | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/file.h b/file.h index 611470ce..c403b176 100644 --- a/file.h +++ b/file.h @@ -151,11 +151,6 @@ struct fio_file { #define FILE_SET_ENG_DATA(f, data) \ ((f)->engine_data = (uintptr_t) (data)) -struct file_name { - struct flist_head list; - char *filename; -}; - #define FILE_FLAG_FNS(name) \ static inline void fio_file_set_##name(struct fio_file *f) \ { \ diff --git a/filesetup.c b/filesetup.c index b240891d..68a3ab96 100644 --- a/filesetup.c +++ b/filesetup.c @@ -24,6 +24,14 @@ static int root_warn; static FLIST_HEAD(filename_list); +/* + * List entry for filename_list + */ +struct file_name { + struct flist_head list; + char *filename; +}; + static inline void clear_error(struct thread_data *td) { td->error = 0; -- 2.25.1