{
int idx;
+ if (!f)
+ return;
+
if (f->first_write == -1ULL || offset < f->first_write)
f->first_write = offset;
if (f->last_write == -1ULL || ((offset + bytes) > f->last_write))
if (!(io_u->flags & IO_U_F_VER_LIST))
td->this_io_bytes[ddir] += bytes;
- if (ddir == DDIR_WRITE && f)
+ if (ddir == DDIR_WRITE)
file_log_write_comp(td, f, io_u->offset, bytes);
if (ramp_time_over(td) && (td->runstate == TD_RUNNING ||