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:
parent
5c24d18923
commit
c42807e3dc
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue