From c99c81adb3510a8dc34d47fd40b19ef657e32192 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 17 Feb 2022 12:53:59 -0700 Subject: [PATCH] Correct F_FULLSYNC -> F_FULLFSYNC Apparently used a mix of the two, inconsistently. Fixes: a04e0665cb5d ("Use fcntl(..., F_FULLSYNC) if available") Signed-off-by: Jens Axboe --- configure | 6 +++--- io_u.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index fd1d435b..6160d84d 100755 --- 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 9d977d34..806ceb77 100644 --- 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 -- 2.25.1