io_ddir: move count values out of the enum fio_ddir
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Jan 2018 17:16:51 +0000 (10:16 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Jan 2018 17:16:51 +0000 (10:16 -0700)
They are not directions, just counts.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_ddir.h

index 71084aa4065b71a61b8860711b7968367cfb2cb9..6adb7fb8b3aefd11c2050473971d9782763eaf28 100644 (file)
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -7,9 +7,6 @@ enum fio_ddir {
        DDIR_TRIM = 2,
        DDIR_SYNC = 3,
 
        DDIR_TRIM = 2,
        DDIR_SYNC = 3,
 
-       DDIR_RWDIR_CNT = 3,
-       DDIR_RWDIR_SYNC_CNT = 4,
-
        DDIR_DATASYNC,
        DDIR_SYNC_FILE_RANGE,
        DDIR_WAIT,
        DDIR_DATASYNC,
        DDIR_SYNC_FILE_RANGE,
        DDIR_WAIT,
@@ -17,6 +14,11 @@ enum fio_ddir {
        DDIR_INVAL = -1,
 };
 
        DDIR_INVAL = -1,
 };
 
+enum {
+       DDIR_RWDIR_CNT = 3,
+       DDIR_RWDIR_SYNC_CNT = 4,
+};
+
 static inline const char *io_ddir_name(enum fio_ddir ddir)
 {
        static const char *name[] = { "read", "write", "trim", "sync",
 static inline const char *io_ddir_name(enum fio_ddir ddir)
 {
        static const char *name[] = { "read", "write", "trim", "sync",