Merge branch 'master' of ssh://git.kernel.dk/data/git/fio
[fio.git] / io_ddir.h
index a23ea626be83d9877a3c670719e7b3ef160124a4..269768ecac9e1b3da452d3279b17e5b8de496385 100644 (file)
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -57,15 +57,13 @@ static inline int ddir_rw(enum fio_ddir ddir)
 
 static inline const char *ddir_str(enum td_ddir ddir)
 {
-       const char *ddir_str[] = { NULL, "read", "write", "rw", NULL,
-                                  "randread", "randwrite", "randrw",
-                                  "trim", NULL, NULL, NULL, "randtrim" };
+       const char *__str[] = { NULL, "read", "write", "rw", NULL,
+                               "randread", "randwrite", "randrw",
+                               "trim", NULL, NULL, NULL, "randtrim" };
 
-       return ddir_str[ddir];
+       return __str[ddir];
 }
 
-#define ddir_trim(ddir) ((ddir) == DDIR_TRIM)
-
 #define ddir_rw_sum(arr)       \
        ((arr)[DDIR_READ] + (arr)[DDIR_WRITE] + (arr)[DDIR_TRIM])