From f203aee66c4e5a6eef5ba4634ad5d1725b87f2f9 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 14 May 2021 14:07:02 +0200 Subject: [PATCH] Style fixes. Pointed out by Axel on Gerrit, I was too fast to merge the commit. --- src/system/kernel/device_manager/IOCache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/kernel/device_manager/IOCache.cpp b/src/system/kernel/device_manager/IOCache.cpp index 69a9690d25..14809b9ae9 100644 --- a/src/system/kernel/device_manager/IOCache.cpp +++ b/src/system/kernel/device_manager/IOCache.cpp @@ -325,11 +325,11 @@ IOCache::_TransferRequestLine(IORequest* request, off_t lineOffset, // If this is a read request and the missing page range does not // intersect with the request, then we can skip allocating pages. page_num_t requestPageOffset = requestOffset / B_PAGE_SIZE; - page_num_t requestPageCount = - (requestLength + B_PAGE_SIZE - 1) / B_PAGE_SIZE; + page_num_t requestPageCount + = (requestLength + B_PAGE_SIZE - 1) / B_PAGE_SIZE; - skipPageAllocation = - (firstMissing >= (requestPageOffset + requestPageCount)) + skipPageAllocation + = (firstMissing >= (requestPageOffset + requestPageCount)) || (lastMissing < requestPageOffset); } else skipPageAllocation = false;