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

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
// 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;