Make sure we handle multiple arguments to sync_file_range

We need to be able to OR the values.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c
index 0e89534..de93497 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -439,8 +439,8 @@
 	offset = f->first_write;
 	nbytes = f->last_write - f->first_write;
 
-	if (nbytes)
-		return sync_file_range(f->fd, offset, nbytes, 0);
+	if (!nbytes)
+		return 0;
 
-	return 0;
+	return sync_file_range(f->fd, offset, nbytes, td->o.sync_file_range);
 }