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:
parent
ea7e06fe27
commit
c0f7daaff4
1 changed files with 9 additions and 8 deletions
17
ircd/fs.cc
17
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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue