Merge branch 'master' of ssh://router/data/git/fio
[fio.git] / engines / fio-engine-mmap.c
index ad294f5d687f80d5a0555e12bc6ad05dbb87fb4c..d203d6afc40db3d4ccca1cbcdbdaff4f94c22aab 100644 (file)
@@ -67,7 +67,8 @@ static int fio_mmapio_queue(struct thread_data *td, struct io_u *io_u)
        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);
 }
@@ -98,5 +99,5 @@ struct ioengine_ops ioengine = {
        .event          = fio_mmapio_event,
        .cleanup        = fio_mmapio_cleanup,
        .sync           = fio_mmapio_sync,
-       .flags          = FIO_SYNCIO,
+       .flags          = FIO_SYNCIO | FIO_MMAPIO,
 };