commit | 009bd847b5aeaca78e76de3a7066fe7d507a735f | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu May 15 10:19:46 2008 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu May 15 10:19:46 2008 +0200 |
tree | cab1258f98dedd1543a2575ae74b7fd2b38c29bf | |
parent | d8005759746a2cb5c8269201911b1997aa714e80 [diff] [blame] |
Fix bad interaction with file open/close and queuing Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h index 5ee43e0..47b6d48 100644 --- a/fio.h +++ b/fio.h
@@ -980,6 +980,12 @@ } \ } while (0) +static inline void fio_file_reset(struct fio_file *f) +{ + f->last_free_lookup = 0; + f->last_pos = f->file_offset; +} + static inline void clear_error(struct thread_data *td) { td->error = 0;