From d3c2dd6c14146fbd7ff560937fe07e57afcd6ef6 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 21 Mar 2026 13:47:13 -0400 Subject: [PATCH] kernel/vm: Commit changes missed in previous commit. --- src/system/kernel/vm/VMCache.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/system/kernel/vm/VMCache.cpp b/src/system/kernel/vm/VMCache.cpp index 5f19f77362..459b771186 100644 --- a/src/system/kernel/vm/VMCache.cpp +++ b/src/system/kernel/vm/VMCache.cpp @@ -978,23 +978,20 @@ VMCache::AddConsumer(VMCache* consumer) /*! Adds the \a area to this cache. Assumes you have the locked the cache. */ -status_t +void VMCache::InsertAreaLocked(VMArea* area) { TRACE(("VMCache::InsertAreaLocked(cache %p, area %p)\n", this, area)); T(InsertArea(this, area)); - AssertLocked(); areas.Insert(area, false); AcquireStoreRef(); - - return B_OK; } -status_t +void VMCache::RemoveArea(VMArea* area) { TRACE(("VMCache::RemoveArea(cache %p, area %p)\n", this, area)); @@ -1010,16 +1007,14 @@ VMCache::RemoveArea(VMArea* area) AutoLocker locker(this); areas.Remove(area); - - return B_OK; } -/*! Transfers the areas from \a fromCache to this cache. This cache must not +/*! Takes the areas from \a fromCache to this cache. This cache must not have areas yet. Both caches must be locked. */ void -VMCache::TransferAreas(VMCache* fromCache) +VMCache::TakeAreasFrom(VMCache* fromCache) { AssertLocked(); fromCache->AssertLocked();