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

ircd::fs: Branches almost always taken.

This commit is contained in:
Jason Volk 2019-10-10 01:32:42 -07:00
parent 5ac73dc7f9
commit 935f54b604

View file

@ -753,12 +753,12 @@ ircd::fs::read(const fd &fd,
assert(opts.op == op::READ); assert(opts.op == op::READ);
#ifdef IRCD_USE_IOU #ifdef IRCD_USE_IOU
if(iou::system && opts.aio) if(likely(iou::system && opts.aio))
return iou::read(fd, iov, opts); return iou::read(fd, iov, opts);
#endif #endif
#ifdef IRCD_USE_AIO #ifdef IRCD_USE_AIO
if(aio::system && opts.aio) if(likely(aio::system && opts.aio))
return aio::read(fd, iov, opts); return aio::read(fd, iov, opts);
#endif #endif
@ -1134,12 +1134,12 @@ ircd::fs::write(const fd &fd,
assert(opts.op == op::WRITE); assert(opts.op == op::WRITE);
#ifdef IRCD_USE_IOU #ifdef IRCD_USE_IOU
if(iou::system && opts.aio) if(likely(iou::system && opts.aio))
return iou::write(fd, iov, opts); return iou::write(fd, iov, opts);
#endif #endif
#ifdef IRCD_USE_AIO #ifdef IRCD_USE_AIO
if(aio::system && opts.aio) if(likely(aio::system && opts.aio))
return aio::write(fd, iov, opts); return aio::write(fd, iov, opts);
#endif #endif