void log_io_u(struct thread_data *td, struct io_u *io_u)
{
const char *act[] = { "read", "write", "sync", "datasync",
- "sync_file_range" };
+ "sync_file_range", "wait", "trim" };
- assert(io_u->ddir <= 4);
+ assert(io_u->ddir <= 6);
if (!td->o.write_iolog_file)
return;
io_u->buflen = ipo->len;
io_u->file = td->files[ipo->fileno];
get_file(io_u->file);
-
dprint(FD_IO, "iolog: get %llu/%lu/%s\n", io_u->offset,
io_u->buflen, io_u->file->file_name);
- if (ipo->delay) iolog_delay(td, ipo->delay);
+ if (ipo->delay)
+ iolog_delay(td, ipo->delay);
} else {
elapsed = mtime_since_genesis();
if (ipo->delay > elapsed)
free(ipo);
- if (ipo->ddir != DDIR_WAIT)
+ if (io_u->ddir != DDIR_WAIT)
return 0;
}