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.
This commit is contained in:
Andreas Kling 2021-08-09 02:07:08 +02:00
parent ab5c422a29
commit 96c7b70de3
Notes: sideshowbarker 2024-07-18 07:11:37 +09:00
2 changed files with 0 additions and 5 deletions

View File

@ -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()

View File

@ -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;