0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

ircd::fs: Fix erroneous/redundant fallthrough to blocking flush.

This commit is contained in:
Jason Volk 2021-01-21 19:57:51 -08:00
parent 7aff759abc
commit 690e641e90

View file

@ -772,17 +772,17 @@ ircd::fs::flush(const fd &fd,
#ifdef IRCD_USE_IOU
if(iou::system && opts.aio)
return iou::fsync(fd, opts);
return void(iou::fsync(fd, opts));
#endif
#ifdef IRCD_USE_AIO
if(aio::system && opts.aio)
{
if(support::aio_fdsync && !opts.metadata)
aio::fsync(fd, opts);
return void(aio::fsync(fd, opts));
if(support::aio_fsync && opts.metadata)
aio::fsync(fd, opts);
else if(support::aio_fsync && opts.metadata)
return void(aio::fsync(fd, opts));
}
#endif