From 372d89627cc04b5f30193ad8df762f86a580596d Mon Sep 17 00:00:00 2001 From: Andrey Kuzmin Date: Fri, 27 Jun 2014 20:21:22 -0600 Subject: [PATCH] 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 --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1