Use 0 instead of DDIR_READ to iterate from 0 to DDIR_RWDIR_CNT
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 14 Feb 2017 15:19:48 +0000 (17:19 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Feb 2017 15:24:24 +0000 (08:24 -0700)
commitc1f50f765a0a51931605c1fb223d166e3b3a93c6
treeef5951e21f1ba71ec11a6ef2685144d8d16cad6c
parent6d6a7e02b818072ec5016662917f3b5cd0f2f3e0
Use 0 instead of DDIR_READ to iterate from 0 to DDIR_RWDIR_CNT

I think this is better since we want to count up DDIR_RWDIR_CNT,
but not specifically (count - something) even if something is 0,
and that's basically what DDIR_RWDIR_CNT is there for to equal
SYNC=3 after READ/WRITE/TRIM in io_ddir.h.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
eta.c
io_u.c
stat.c
steadystate.c