Test uint,int before division uint/int for the next i/o
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 20 Mar 2017 21:28:46 +0000 (23:28 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 21 Mar 2017 13:16:11 +0000 (07:16 -0600)
commit06dc04a89b2b1f200947cd385f6e837b9948f341
tree366cd2ea95f266b6f5b2f654247127a4a6402851
parentc6dfd837e0c0e46495d57d085dc78a66cf67dfdf
Test uint,int before division uint/int for the next i/o

When selecting ddir for the next i/o, test td->io_issues[DDIR_WRITE]
before division which is more expensive.

if (x && y && !(y % x))
rather than
if (x && !(y % x) && y)

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