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

Kernel: Reduce time under VMObject lock while handling zero faults

We only need to hold the VMObject lock while inspecting and/or updating
the physical page array in the VMObject.
This commit is contained in:
Andreas Kling 2022-08-19 12:51:52 +02:00
parent a84d893af8
commit 5ada38f9c3
2 changed files with 27 additions and 20 deletions

View file

@ -211,7 +211,7 @@ private:
[[nodiscard]] PageFaultResponse handle_cow_fault(size_t page_index);
[[nodiscard]] PageFaultResponse handle_inode_fault(size_t page_index);
[[nodiscard]] PageFaultResponse handle_zero_fault(size_t page_index);
[[nodiscard]] PageFaultResponse handle_zero_fault(size_t page_index, PhysicalPage& page_in_slot_at_time_of_fault);
[[nodiscard]] bool map_individual_page_impl(size_t page_index);
[[nodiscard]] bool map_individual_page_impl(size_t page_index, RefPtr<PhysicalPage>);