diff options
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r-- | Kernel/VM/MemoryManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 8f53a7f18a..53716a53e9 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -378,7 +378,7 @@ OwnPtr<Region> MemoryManager::allocate_kernel_region_with_vmobject(VMObject& vmo return allocate_kernel_region_with_vmobject(range, vmobject, name, access, user_accessible, cacheable); } -void MemoryManager::deallocate_user_physical_page(PhysicalPage&& page) +void MemoryManager::deallocate_user_physical_page(const PhysicalPage& page) { ScopedSpinLock lock(s_mm_lock); for (auto& region : m_user_physical_regions) { @@ -387,7 +387,7 @@ void MemoryManager::deallocate_user_physical_page(PhysicalPage&& page) continue; } - region.return_page(move(page)); + region.return_page(page); --m_user_physical_pages_used; return; @@ -448,7 +448,7 @@ RefPtr<PhysicalPage> MemoryManager::allocate_user_physical_page(ShouldZeroFill s return page; } -void MemoryManager::deallocate_supervisor_physical_page(PhysicalPage&& page) +void MemoryManager::deallocate_supervisor_physical_page(const PhysicalPage& page) { ScopedSpinLock lock(s_mm_lock); for (auto& region : m_super_physical_regions) { @@ -457,7 +457,7 @@ void MemoryManager::deallocate_supervisor_physical_page(PhysicalPage&& page) continue; } - region.return_page(move(page)); + region.return_page(page); --m_super_physical_pages_used; return; } |