From c0f7daaff44eb3a4813a79bcf3942dc3f67b969b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 26 Apr 2019 06:19:48 -0700 Subject: [PATCH] ircd::fs::aio: Fix warning indicator placement. --- ircd/fs.cc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ircd/fs.cc b/ircd/fs.cc index bd97856d6..a25b58f4c 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -444,14 +444,6 @@ ircd::fs::flush(const fd &fd, const sync_opts &opts) { assert(opts.op == op::SYNC); - const ctx::syscall_usage_warning message - { - "fs::flush(fd:%d, {metadata:%b aio:%b:%b})", - int(fd), - opts.metadata, - opts.aio, - opts.metadata? aio::support_fdsync : aio::support_fsync - }; #ifdef IRCD_USE_AIO if(aio::system && opts.aio) @@ -464,6 +456,15 @@ ircd::fs::flush(const fd &fd, } #endif + const ctx::syscall_usage_warning message + { + "fs::flush(fd:%d, {metadata:%b aio:%b:%b})", + int(fd), + opts.metadata, + opts.aio, + opts.metadata? aio::support_fsync : aio::support_fdsync + }; + if(!opts.metadata) return void(syscall(::fdatasync, fd));