1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

Kernel: Remove debug spam when PhysicalRegion::take_free_page() fails

We can have multiple PhysicalRegions (often the case when there is a
huge amount of RAM) so we really shouldn't print a debug message any
time someone tries to allocate from one. They will move on to another
region anyway.
This commit is contained in:
Andreas Kling 2021-07-14 01:32:33 +02:00
parent 5c24d18923
commit c42807e3dc

View file

@ -105,10 +105,8 @@ NonnullRefPtrVector<PhysicalPage> PhysicalRegion::take_contiguous_free_pages(siz
RefPtr<PhysicalPage> PhysicalRegion::take_free_page()
{
if (m_usable_zones.is_empty()) {
dbgln("PhysicalRegion::take_free_page: No free physical pages");
if (m_usable_zones.is_empty())
return nullptr;
}
auto& zone = *m_usable_zones.first();
auto page = zone.allocate_block(0);