[haiku-commits] r37459 - haiku/trunk/src/system/kernel/vm

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 10 Jul 2010 16:39:15 +0200 (CEST)

Author: bonefish
Date: 2010-07-10 16:39:15 +0200 (Sat, 10 Jul 2010)
New Revision: 37459
Changeset: http://dev.haiku-os.org/changeset/37459/haiku

Modified:
   haiku/trunk/src/system/kernel/vm/VMAnonymousCache.cpp
Log:
Use MovePage() instead of RemovePage() + InsertPage().


Modified: haiku/trunk/src/system/kernel/vm/VMAnonymousCache.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/VMAnonymousCache.cpp       2010-07-10 
13:23:18 UTC (rev 37458)
+++ haiku/trunk/src/system/kernel/vm/VMAnonymousCache.cpp       2010-07-10 
14:39:15 UTC (rev 37459)
@@ -1017,8 +1017,7 @@
                if (consumerPage == NULL) {
                        // the page is not yet in the consumer cache - move it 
upwards
                        ASSERT_PRINT(!page->busy, "page: %p", page);
-                       source->RemovePage(page);
-                       InsertPage(page, (off_t)page->cache_offset << 
PAGE_SHIFT);
+                       MovePage(page);
                }
        }
 }


Other related posts:

  • » [haiku-commits] r37459 - haiku/trunk/src/system/kernel/vm - ingo_weinhold