From 78d55e721268e2fb9bea707529db89bacf9964ef Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 3 Jul 2014 14:16:25 -0600 Subject: [PATCH] Move tp.[ch] to lib/ It's just helper code, not fio core. Signed-off-by: Jens Axboe --- Makefile | 2 +- backend.c | 2 +- iolog.c | 2 +- tp.c => lib/tp.c | 4 ++-- tp.h => lib/tp.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename tp.c => lib/tp.c (97%) rename tp.h => lib/tp.h (96%) diff --git a/Makefile b/Makefile index f179b644..65e95be6 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ SOURCE := gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \ lib/lfsr.c gettime-thread.c helpers.c lib/flist_sort.c \ lib/hweight.c lib/getrusage.c idletime.c td_error.c \ profiles/tiobench.c profiles/act.c io_u_queue.c filelock.c \ - tp.c + lib/tp.c ifdef CONFIG_64BIT_LLP64 CFLAGS += -DBITS_PER_LONG=32 diff --git a/backend.c b/backend.c index e32d8416..68540abb 100644 --- a/backend.c +++ b/backend.c @@ -53,7 +53,7 @@ #include "lib/getrusage.h" #include "idletime.h" #include "err.h" -#include "tp.h" +#include "lib/tp.h" static pthread_t disk_util_thread; static struct fio_mutex *disk_thread_mutex; diff --git a/iolog.c b/iolog.c index 0d07b0e3..95067056 100644 --- a/iolog.c +++ b/iolog.c @@ -18,7 +18,7 @@ #include "verify.h" #include "trim.h" #include "filelock.h" -#include "tp.h" +#include "lib/tp.h" static const char iolog_ver2[] = "fio version 2 iolog"; diff --git a/tp.c b/lib/tp.c similarity index 97% rename from tp.c rename to lib/tp.c index 81d17b64..25f7eb6d 100644 --- a/tp.c +++ b/lib/tp.c @@ -5,8 +5,8 @@ #include #include -#include "smalloc.h" -#include "log.h" +#include "../smalloc.h" +#include "../log.h" #include "tp.h" static void tp_flush_work(struct flist_head *list) diff --git a/tp.h b/lib/tp.h similarity index 96% rename from tp.h rename to lib/tp.h index b1aa1e2d..5b07cc6c 100644 --- a/tp.h +++ b/lib/tp.h @@ -1,7 +1,7 @@ #ifndef FIO_TP_H #define FIO_TP_H -#include "flist.h" +#include "../flist.h" struct tp_work; typedef int (tp_work_fn)(struct tp_work *); -- 2.25.1