Correct F_FULLSYNC -> F_FULLFSYNC
authorJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 19:53:59 +0000 (12:53 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 19:53:59 +0000 (12:53 -0700)
Apparently used a mix of the two, inconsistently.

Fixes: a04e0665cb5d ("Use fcntl(..., F_FULLSYNC) if available")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure
io_u.c

index fd1d435b4d432f16bde69916ffd6f2fac7253fa6..6160d84d73faf0ff20477aaac94da8f4f224e445 100755 (executable)
--- a/configure
+++ b/configure
@@ -656,13 +656,13 @@ cat > $TMPC << EOF
 
 int main(int argc, char **argv)
 {
-  return fcntl(0, F_FULLSYNC);
+  return fcntl(0, F_FULLFSYNC);
 }
 EOF
-if compile_prog "" "" "fcntl(F_FULLSYNC)" ; then
+if compile_prog "" "" "fcntl(F_FULLFSYNC)" ; then
     fcntl_sync="yes"
 fi
-print_config "fcntl(F_FULLSYNC)" "$fcntl_sync"
+print_config "fcntl(F_FULLFSYNC)" "$fcntl_sync"
 
 ##########################################
 # linux-aio probe
diff --git a/io_u.c b/io_u.c
index 9d977d34e0c45017ddd36ed3bb357ce62886e040..806ceb77761f549a0fc82e5da557b8c83d43ecaa 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -2298,7 +2298,7 @@ int do_io_u_sync(const struct thread_data *td, struct io_u *io_u)
 
        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