summaryrefslogtreecommitdiff
path: root/Kernel/VM/PhysicalPage.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-15 22:33:53 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-15 22:34:48 +0100
commit5507945306e48fb2cd071ae05eb549f62f81b795 (patch)
treec1fd34134674814143cabe5378ac03c145ea2493 /Kernel/VM/PhysicalPage.cpp
parent51628f64fa2893f6ff49f1456b6d7b9294ece20f (diff)
downloadserenity-5507945306e48fb2cd071ae05eb549f62f81b795.zip
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. :^)
Diffstat (limited to 'Kernel/VM/PhysicalPage.cpp')
-rw-r--r--Kernel/VM/PhysicalPage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/PhysicalPage.cpp b/Kernel/VM/PhysicalPage.cpp
index acd12f5ddb..36be738029 100644
--- a/Kernel/VM/PhysicalPage.cpp
+++ b/Kernel/VM/PhysicalPage.cpp
@@ -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));