From: Jens Axboe Date: Thu, 17 Feb 2022 19:53:59 +0000 (-0700) Subject: Correct F_FULLSYNC -> F_FULLFSYNC X-Git-Tag: fio-3.30~39 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c99c81adb3510a8dc34d47fd40b19ef657e32192;p=fio.git 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 --- 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