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:
Rene Gollent
2011-01-23 23:12:26 +00:00
parent f72663929e
commit d78e0dc9d7
+2 -7
View File
@@ -4090,13 +4090,8 @@ fault_get_page(PageFaultContext& context)
lastCache = cache;
for (;;) {
page = cache->LookupPage(context.cacheOffset);
if (page == NULL || !page->busy) {
// Either there is no page or there is one and it is not busy.
break;
}
page = cache->LookupPage(context.cacheOffset);
if (page != NULL && page->busy) {
// page must be busy -- wait for it to become unbusy
context.UnlockAll(cache);
cache->ReleaseRefLocked();