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

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 15:56:45 +0200 (CEST)

Author: bonefish
Date: 2010-04-20 15:56:45 +0200 (Tue, 20 Apr 2010)
New Revision: 36372
Changeset: http://dev.haiku-os.org/changeset/36372/haiku

Modified:
   haiku/trunk/src/system/kernel/vm/vm.cpp
Log:
cut_area(): We should only resize RAM caches.


Modified: haiku/trunk/src/system/kernel/vm/vm.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/vm.cpp     2010-04-20 13:11:24 UTC (rev 
36371)
+++ haiku/trunk/src/system/kernel/vm/vm.cpp     2010-04-20 13:56:45 UTC (rev 
36372)
@@ -613,7 +613,8 @@
 
                // If no one else uses the area's cache, we can resize it, too.
                if (cache->areas == area && area->cache_next == NULL
-                       && list_is_empty(&cache->consumers)) {
+                       && list_is_empty(&cache->consumers)
+                       && cache->type == CACHE_TYPE_RAM) {
                        // Since VMCache::Resize() can temporarily drop the 
lock, we must
                        // unlock all lower caches to prevent locking order 
inversion.
                        cacheChainLocker.Unlock(cache);


Other related posts:

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