X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=6370a562059a48b92360acab31202ef1e4d6d60f;hp=56149381894abfb56e9bd7a47368cc2773278fde;hb=1a4a019ce7c18e604d1cb47798546708719a6fd0;hpb=effd6ff0d9f701a64d6bc46509eedfdcfd12f553 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); }