From ba16e4ec610c79f250d60c4746e4c86fb542d031 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 20 Apr 2010 13:56:45 +0000 Subject: [PATCH] cut_area(): We should only resize RAM caches. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36372 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 5f6539c7f1..dce69bb00c 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -613,7 +613,8 @@ cut_area(VMAddressSpace* addressSpace, VMArea* area, addr_t address, // 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);