Kernel: Move Region physical page accessors out of line

This commit is contained in:
Andreas Kling 2022-08-18 18:52:04 +02:00
commit 10399a258f
Notes: sideshowbarker 2024-07-17 08:08:39 +09:00
2 changed files with 12 additions and 12 deletions

View file

@ -88,16 +88,4 @@ inline void VMObject::for_each_region(Callback callback)
}
}
inline PhysicalPage const* Region::physical_page(size_t index) const
{
VERIFY(index < page_count());
return vmobject().physical_pages()[first_page_index() + index];
}
inline RefPtr<PhysicalPage>& Region::physical_page_slot(size_t index)
{
VERIFY(index < page_count());
return vmobject().physical_pages()[first_page_index() + index];
}
}