0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::fs::aio: Fix warning indicator placement.

This commit is contained in:
Jason Volk 2019-04-26 06:19:48 -07:00
parent ea7e06fe27
commit c0f7daaff4

View file

@ -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));