summaryrefslogtreecommitdiff
path: root/Kernel/Memory/Region.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-06 21:45:05 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-06 21:45:05 +0200
commit47bdd7c3a01b7e21e56a5d1dd40b18e9ed43f466 (patch)
tree6cbae638fd026c2f9f61e9c0dccb616e0b6a59bf /Kernel/Memory/Region.cpp
parentcdab5b2091689b2f532327dc0d4203f0ba9fe90d (diff)
downloadserenity-47bdd7c3a01b7e21e56a5d1dd40b18e9ed43f466.zip
Kernel: Rename a very long enum to ShouldDeallocateVirtualRange
ShouldDeallocateVirtualMemoryVirtualRange was a bit on the long side.
Diffstat (limited to 'Kernel/Memory/Region.cpp')
-rw-r--r--Kernel/Memory/Region.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Memory/Region.cpp b/Kernel/Memory/Region.cpp
index a5b5758b94..3a328c2205 100644
--- a/Kernel/Memory/Region.cpp
+++ b/Kernel/Memory/Region.cpp
@@ -45,7 +45,7 @@ Region::~Region()
// find the address<->region mappings in an invalid state there.
ScopedSpinLock lock(s_mm_lock);
if (m_page_directory) {
- unmap(ShouldDeallocateVirtualMemoryVirtualRange::Yes);
+ unmap(ShouldDeallocateVirtualRange::Yes);
VERIFY(!m_page_directory);
}
@@ -234,7 +234,7 @@ bool Region::remap_vmobject_page(size_t page_index, bool with_flush)
return success;
}
-void Region::unmap(ShouldDeallocateVirtualMemoryVirtualRange deallocate_range)
+void Region::unmap(ShouldDeallocateVirtualRange deallocate_range)
{
ScopedSpinLock lock(s_mm_lock);
if (!m_page_directory)
@@ -246,7 +246,7 @@ void Region::unmap(ShouldDeallocateVirtualMemoryVirtualRange deallocate_range)
MM.release_pte(*m_page_directory, vaddr, i == count - 1);
}
MM.flush_tlb(m_page_directory, vaddr(), page_count());
- if (deallocate_range == ShouldDeallocateVirtualMemoryVirtualRange::Yes) {
+ if (deallocate_range == ShouldDeallocateVirtualRange::Yes) {
m_page_directory->range_allocator().deallocate(range());
}
m_page_directory = nullptr;