Style fixes.

Pointed out by Axel on Gerrit, I was too fast to merge the commit.
This commit is contained in:
Adrien Destugues
2021-05-14 14:07:02 +02:00
parent f1ec69628a
commit f203aee66c
+4 -4
View File
@@ -325,11 +325,11 @@ IOCache::_TransferRequestLine(IORequest* request, off_t lineOffset,
// If this is a read request and the missing page range does not // If this is a read request and the missing page range does not
// intersect with the request, then we can skip allocating pages. // intersect with the request, then we can skip allocating pages.
page_num_t requestPageOffset = requestOffset / B_PAGE_SIZE; page_num_t requestPageOffset = requestOffset / B_PAGE_SIZE;
page_num_t requestPageCount = page_num_t requestPageCount
(requestLength + B_PAGE_SIZE - 1) / B_PAGE_SIZE; = (requestLength + B_PAGE_SIZE - 1) / B_PAGE_SIZE;
skipPageAllocation = skipPageAllocation
(firstMissing >= (requestPageOffset + requestPageCount)) = (firstMissing >= (requestPageOffset + requestPageCount))
|| (lastMissing < requestPageOffset); || (lastMissing < requestPageOffset);
} else } else
skipPageAllocation = false; skipPageAllocation = false;