Initial suppor for sync_file_range()

This revs the ioengine to 11, as we now have another data direction.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c
index 7f0a5c4..0e89534 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -431,3 +431,16 @@
 
 	return td->io_ops->get_file_size(td, f);
 }
+
+int do_sync_file_range(struct thread_data *td, struct fio_file *f)
+{
+	off64_t offset, nbytes;
+
+	offset = f->first_write;
+	nbytes = f->last_write - f->first_write;
+
+	if (nbytes)
+		return sync_file_range(f->fd, offset, nbytes, 0);
+
+	return 0;
+}