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:
@@ -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 no one else uses the area's cache, we can resize it, too.
|
||||||
if (cache->areas == area && area->cache_next == NULL
|
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
|
// Since VMCache::Resize() can temporarily drop the lock, we must
|
||||||
// unlock all lower caches to prevent locking order inversion.
|
// unlock all lower caches to prevent locking order inversion.
|
||||||
cacheChainLocker.Unlock(cache);
|
cacheChainLocker.Unlock(cache);
|
||||||
|
|||||||
Reference in New Issue
Block a user