cut_area(): We should only resize RAM caches.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36372 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-04-20 13:56:45 +00:00
parent a3b42949e5
commit ba16e4ec61
+2 -1
View File
@@ -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);