return io_u->error;
}
-static int fio_mmapio_sync(struct thread_data *td, struct fio_file *f)
+static int fio_mmapio_sync(struct thread_data fio_unused *td,
+ struct fio_file *f)
{
return msync(f->mmap, f->file_size, MS_SYNC);
}
.event = fio_mmapio_event,
.cleanup = fio_mmapio_cleanup,
.sync = fio_mmapio_sync,
- .flags = FIO_SYNCIO,
+ .flags = FIO_SYNCIO | FIO_MMAPIO,
};