Drop conditional declaration of disk_list
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 14 Feb 2017 15:19:44 +0000 (17:19 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Feb 2017 15:24:24 +0000 (08:24 -0700)
disk_list is used unconditionally whether it's Linux or not,
so leave the one in libfio.c, and remove the one in diskutil.c.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
diskutil.c
libfio.c

index c3bcec928ac29a6a2b753b3ccf2eaeb583a29dab..dca37483fa96a2401c0e49cffc4909659e79ccf0 100644 (file)
@@ -18,8 +18,6 @@ static struct disk_util *last_du;
 
 static struct fio_mutex *disk_util_mutex;
 
-FLIST_HEAD(disk_list);
-
 static struct disk_util *__init_per_file_disk_util(struct thread_data *td,
                int majdev, int mindev, char *path);
 
index 7e0d32c37d4bc345a0f5f95c03c57598536637d5..4b53c92a8756efbe945173d850acedd956608770 100644 (file)
--- a/libfio.c
+++ b/libfio.c
 #include "helper_thread.h"
 #include "filehash.h"
 
-/*
- * Just expose an empty list, if the OS does not support disk util stats
- */
-#ifndef FIO_HAVE_DISK_UTIL
 FLIST_HEAD(disk_list);
-#endif
 
 unsigned long arch_flags = 0;