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

Kernel: Widen PhysicalPage refcount to 32 bits

A 16-bit refcount is just begging for trouble right nowl.
A 32-bit refcount will be begging for trouble later down the line,
so we'll have to revisit this eventually. :^)
This commit is contained in:
Andreas Kling 2020-02-15 22:33:53 +01:00
parent 51628f64fa
commit 5507945306
2 changed files with 7 additions and 7 deletions

View file

@ -46,7 +46,7 @@ void PhysicalPage::return_to_freelist() &&
InterruptDisabler disabler;
m_retain_count = 1;
m_ref_count = 1;
if (m_supervisor)
MM.deallocate_supervisor_physical_page(move(*this));