Fix read/write mix and different levels of randomness
[fio.git] / file.h
diff --git a/file.h b/file.h
index add77730fdb43931ba2fff38881b9196b3175395..bb303103048cd847e3918efc18c98efbda1950fb 100644 (file)
--- a/file.h
+++ b/file.h
@@ -88,8 +88,11 @@ struct fio_file {
        uint64_t file_offset;
        uint64_t io_size;
 
-       uint64_t last_pos;
-       uint64_t last_start;
+       /*
+        * Track last end and last start of IO for a given data direction
+        */
+       uint64_t last_pos[DDIR_RWDIR_CNT];
+       uint64_t last_start[DDIR_RWDIR_CNT];
 
        uint64_t first_write;
        uint64_t last_write;