From 935f54b604f844d4ff0b40e123d856b71ea3729d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 10 Oct 2019 01:32:42 -0700 Subject: [PATCH] ircd::fs: Branches almost always taken. --- ircd/fs.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ircd/fs.cc b/ircd/fs.cc index 2503688c6..9f3c12346 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -753,12 +753,12 @@ ircd::fs::read(const fd &fd, assert(opts.op == op::READ); #ifdef IRCD_USE_IOU - if(iou::system && opts.aio) + if(likely(iou::system && opts.aio)) return iou::read(fd, iov, opts); #endif #ifdef IRCD_USE_AIO - if(aio::system && opts.aio) + if(likely(aio::system && opts.aio)) return aio::read(fd, iov, opts); #endif @@ -1134,12 +1134,12 @@ ircd::fs::write(const fd &fd, assert(opts.op == op::WRITE); #ifdef IRCD_USE_IOU - if(iou::system && opts.aio) + if(likely(iou::system && opts.aio)) return iou::write(fd, iov, opts); #endif #ifdef IRCD_USE_AIO - if(aio::system && opts.aio) + if(likely(aio::system && opts.aio)) return aio::write(fd, iov, opts); #endif