Apparently used a mix of the two, inconsistently.
Fixes:
a04e0665cb5d ("Use fcntl(..., F_FULLSYNC) if available")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
- return fcntl(0, F_FULLSYNC);
+ return fcntl(0, F_FULLFSYNC);
-if compile_prog "" "" "fcntl(F_FULLSYNC)" ; then
+if compile_prog "" "" "fcntl(F_FULLFSYNC)" ; then
-print_config "fcntl(F_FULLSYNC)" "$fcntl_sync"
+print_config "fcntl(F_FULLFSYNC)" "$fcntl_sync"
##########################################
# linux-aio probe
##########################################
# linux-aio probe
if (io_u->ddir == DDIR_SYNC) {
#ifdef CONFIG_FCNTL_SYNC
if (io_u->ddir == DDIR_SYNC) {
#ifdef CONFIG_FCNTL_SYNC
- ret = fcntl(io_u->file->fd, F_FULLSYNC);
+ ret = fcntl(io_u->file->fd, F_FULLFSYNC);
#else
ret = fsync(io_u->file->fd);
#endif
#else
ret = fsync(io_u->file->fd);
#endif