/*
- * regular read/write sync io engine
+ * mmap engine
+ *
+ * IO engine that reads/writes from files by doing memcpy to/from
+ * a memory mapped region of the file.
*
*/
#include <stdio.h>
/*
* not really direct, but should drop the pages from the cache
*/
- if (td->odirect && io_u->ddir != DDIR_SYNC) {
+ if (td->o.odirect && io_u->ddir != DDIR_SYNC) {
size_t len = (io_u->xfer_buflen + page_size - 1) & ~page_mask;
unsigned long long off = real_off & ~page_mask;
else if (td_write(td)) {
flags = PROT_WRITE;
- if (td->verify != VERIFY_NONE)
+ if (td->o.verify != VERIFY_NONE)
flags |= PROT_READ;
} else
flags = PROT_READ;