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:
parent
51628f64fa
commit
5507945306
2 changed files with 7 additions and 7 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue