X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fglusterfs_sync.c;h=de73261f6c88fbc4778d5f2b45e9447b40bcb7d8;hb=6463db6c1d3a2a961008e87a86d464b596886f1a;hp=099a5af10406a4da4f2d7158df2df28881456f6d;hpb=5fff95436922873dd9ded8b21af7222689e2ec5d;p=fio.git diff --git a/engines/glusterfs_sync.c b/engines/glusterfs_sync.c index 099a5af1..de73261f 100644 --- a/engines/glusterfs_sync.c +++ b/engines/glusterfs_sync.c @@ -42,9 +42,17 @@ static enum fio_q_status fio_gf_queue(struct thread_data *td, struct io_u *io_u) else if (io_u->ddir == DDIR_WRITE) ret = glfs_write(g->fd, io_u->xfer_buf, io_u->xfer_buflen, 0); else if (io_u->ddir == DDIR_SYNC) +#if defined(CONFIG_GF_NEW_API) + ret = glfs_fsync(g->fd, NULL, NULL); +#else ret = glfs_fsync(g->fd); +#endif else if (io_u->ddir == DDIR_DATASYNC) +#if defined(CONFIG_GF_NEW_API) + ret = glfs_fdatasync(g->fd, NULL, NULL); +#else ret = glfs_fdatasync(g->fd); +#endif else { log_err("unsupported operation.\n"); io_u->error = EINVAL;