iolog: fix potential duplicate definition of compress init/exit
authorJens Axboe <axboe@fb.com>
Tue, 8 Dec 2015 20:04:59 +0000 (13:04 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 8 Dec 2015 20:04:59 +0000 (13:04 -0700)
Move the code inside the #else part of the zlib check.

Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c

diff --git a/iolog.c b/iolog.c
index 24e3f10feb37ab402bd7e2c70b2fcb81d86d637a..961c9171f72f21654f17cc84f7ef07c8683b7991 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -1194,6 +1194,15 @@ int iolog_flush(struct io_log *log, int wait)
        return 1;
 }
 
        return 1;
 }
 
+int iolog_compress_init(struct thread_data *td)
+{
+       return 0;
+}
+
+void iolog_compress_exit(struct thread_data *td)
+{
+}
+
 #endif
 
 static int write_iops_log(struct thread_data *td, int try)
 #endif
 
 static int write_iops_log(struct thread_data *td, int try)
@@ -1316,12 +1325,3 @@ void fio_writeout_logs(struct thread_data *td)
 
        td_restore_runstate(td, old_state);
 }
 
        td_restore_runstate(td, old_state);
 }
-
-int iolog_compress_init(struct thread_data *td)
-{
-       return 0;
-}
-
-void iolog_compress_exit(struct thread_data *td)
-{
-}