X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=ioengines.c;h=6370a562059a48b92360acab31202ef1e4d6d60f;hb=0c87ac2ac5df7e20b8c8d9cfc46b7667deeef683;hp=56149381894abfb56e9bd7a47368cc2773278fde;hpb=effd6ff0d9f701a64d6bc46509eedfdcfd12f553;p=fio.git diff --git a/ioengines.c b/ioengines.c index 56149381..6370a562 100644 --- a/ioengines.c +++ b/ioengines.c @@ -220,7 +220,7 @@ int td_io_prep(struct thread_data *td, struct io_u *io_u) } int td_io_getevents(struct thread_data *td, unsigned int min, unsigned int max, - struct timespec *t) + const struct timespec *t) { int r = 0; @@ -321,7 +321,7 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) "support direct IO, or iomem_align= is bad.\n"); } - if (!td->io_ops->commit || ddir_trim(io_u->ddir)) { + if (!td->io_ops->commit || io_u->ddir == DDIR_TRIM) { io_u_mark_submit(td, 1); io_u_mark_complete(td, 1); }