X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=9e1c55639a477db0031b9b8583aeb7b87deb73a5;hp=d3ee4b98e3dc3741c614ea366c2c21378c8405b8;hb=009bd847b5aeaca78e76de3a7066fe7d507a735f;hpb=d8005759746a2cb5c8269201911b1997aa714e80 diff --git a/ioengines.c b/ioengines.c index d3ee4b98..9e1c5563 100644 --- a/ioengines.c +++ b/ioengines.c @@ -327,8 +327,7 @@ int td_io_open_file(struct thread_data *td, struct fio_file *f) } } - f->last_free_lookup = 0; - f->last_pos = f->file_offset; + fio_file_reset(f); f->flags |= FIO_FILE_OPEN; f->flags &= ~FIO_FILE_CLOSING;