From: Andrey Kuzmin Date: Sat, 28 Jun 2014 02:21:22 +0000 (-0600) Subject: Fix typo in io_u.c::get_next_file() X-Git-Tag: fio-2.1.11~43 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=372d89627cc04b5f30193ad8df762f86a580596d;p=fio.git Fix typo in io_u.c::get_next_file() We should check ops->get_next_file() is TD_F_PROFILE_OPS is set, not if it's unset. Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index e132fd9d..997e1137 100644 --- a/io_u.c +++ b/io_u.c @@ -1100,7 +1100,7 @@ out: static struct fio_file *get_next_file(struct thread_data *td) { - if (!(td->flags & TD_F_PROFILE_OPS)) { + if (td->flags & TD_F_PROFILE_OPS) { struct prof_io_ops *ops = &td->prof_io_ops; if (ops->get_next_file)