CID 10326 - remove superfluous for loop.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40277 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4090,13 +4090,8 @@ fault_get_page(PageFaultContext& context)
|
|||||||
|
|
||||||
lastCache = cache;
|
lastCache = cache;
|
||||||
|
|
||||||
for (;;) {
|
page = cache->LookupPage(context.cacheOffset);
|
||||||
page = cache->LookupPage(context.cacheOffset);
|
if (page != NULL && page->busy) {
|
||||||
if (page == NULL || !page->busy) {
|
|
||||||
// Either there is no page or there is one and it is not busy.
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// page must be busy -- wait for it to become unbusy
|
// page must be busy -- wait for it to become unbusy
|
||||||
context.UnlockAll(cache);
|
context.UnlockAll(cache);
|
||||||
cache->ReleaseRefLocked();
|
cache->ReleaseRefLocked();
|
||||||
|
|||||||
Reference in New Issue
Block a user