X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=393f381d249cdcdd542f9fe57da373511af6204b;hb=5570ec6a71be9adde6d5f7a6114ba7c9b4a0d680;hp=919c6cde8da2c9ed74ec401cf0c5f21396a46289;hpb=9746fdbbd89cb202ecf2ee402b79ef215390eaea;p=fio.git diff --git a/fio.h b/fio.h index 919c6cde..393f381d 100644 --- a/fio.h +++ b/fio.h @@ -20,7 +20,7 @@ struct thread_data; #include "thread_options.h" #include "flist.h" #include "fifo.h" -#include "rbtree.h" +#include "lib/rbtree.h" #include "arch/arch.h" #include "os/os.h" #include "mutex.h" @@ -310,7 +310,6 @@ enum { extern int exitall_on_terminate; extern unsigned int thread_number; -extern unsigned int nr_process, nr_thread; extern int shm_id; extern int groupid; extern int terse_output; @@ -552,4 +551,6 @@ static inline void td_io_u_free_notify(struct thread_data *td) extern const char *fio_get_arch_string(int); extern const char *fio_get_os_string(int); +#define ARRAY_SIZE(x) (sizeof((x)) / (sizeof((x)[0]))) + #endif