diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-06-14 14:56:21 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-14 16:14:49 +0200 |
commit | 118cb391dddb33ca528309e1526464bd824b7e72 (patch) | |
tree | ad17fa7eb4c126578dbe60c68748837e68fa564b /Kernel/VM/PhysicalRegion.h | |
parent | 7710e48d838e6cc002fb4ee23f0c794fdc6b952d (diff) | |
download | serenity-118cb391dddb33ca528309e1526464bd824b7e72.zip |
VM: Pass a PhysicalPage by rvalue reference when returning it to the freelist.
This makes no functional difference, but it makes it clear that
MemoryManager and PhysicalRegion take over the actual physical
page represented by this PhysicalPage instance.
Diffstat (limited to 'Kernel/VM/PhysicalRegion.h')
-rw-r--r-- | Kernel/VM/PhysicalRegion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/PhysicalRegion.h b/Kernel/VM/PhysicalRegion.h index d4f4fb1934..b14b6daf1a 100644 --- a/Kernel/VM/PhysicalRegion.h +++ b/Kernel/VM/PhysicalRegion.h @@ -25,7 +25,7 @@ public: RetainPtr<PhysicalPage> take_free_page(bool supervisor); void return_page_at(PhysicalAddress addr); - void return_page(PhysicalPage& page) { return_page_at(page.paddr()); } + void return_page(PhysicalPage&& page) { return_page_at(page.paddr()); } private: PhysicalRegion(PhysicalAddress lower, PhysicalAddress upper); |