kernel/vm: Commit changes missed in previous commit.

This commit is contained in:
Augustin Cavalier
2026-03-21 13:47:13 -04:00
parent e13a6e6ec2
commit d3c2dd6c14
+4 -9
View File
@@ -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<VMCache> 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();