diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-09 02:07:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-09 11:46:31 +0200 |
commit | 96c7b70de3ab95f7162f0dcc8974eb574cb6ee11 (patch) | |
tree | d5c64ab9d44482757c97afc8721ece9300c93f54 /Kernel/Memory | |
parent | ab5c422a291a4d5577bfa9a0ca6e2e0861298b05 (diff) | |
download | serenity-96c7b70de3ab95f7162f0dcc8974eb574cb6ee11.zip |
Kernel: Remove unused list of user regions in MemoryManager
We were putting all the user Region objects on an intrusive list
but not using it for anything.
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/MemoryManager.cpp | 4 | ||||
-rw-r--r-- | Kernel/Memory/MemoryManager.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index 1dc0aecd96..a92c94a1a2 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -1067,8 +1067,6 @@ void MemoryManager::register_region(Region& region) ScopedSpinLock lock(s_mm_lock); if (region.is_kernel()) m_kernel_regions.append(region); - else - m_user_regions.append(region); } void MemoryManager::unregister_region(Region& region) @@ -1076,8 +1074,6 @@ void MemoryManager::unregister_region(Region& region) ScopedSpinLock lock(s_mm_lock); if (region.is_kernel()) m_kernel_regions.remove(region); - else - m_user_regions.remove(region); } void MemoryManager::dump_kernel_regions() diff --git a/Kernel/Memory/MemoryManager.h b/Kernel/Memory/MemoryManager.h index 227e3539c2..4e1077ac97 100644 --- a/Kernel/Memory/MemoryManager.h +++ b/Kernel/Memory/MemoryManager.h @@ -285,7 +285,6 @@ private: PhysicalPageEntry* m_physical_page_entries { nullptr }; size_t m_physical_page_entries_count { 0 }; - Region::ListInMemoryManager m_user_regions; Region::ListInMemoryManager m_kernel_regions; Vector<UsedMemoryRange> m_used_memory_ranges; Vector<PhysicalMemoryRange> m_physical_memory_ranges; |