mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:28:11 +00:00
Kernel: Don't remap all regions from Region::remap_vmobject_page()
When handling a page fault, we only need to remap the faulting region in the current process. There's no need to traverse *all* regions that map the same VMObject and remap them cross-process as well. Those other regions will get remapped lazily by their own page fault handlers eventually. Or maybe they won't and we avoided some work. :^)
This commit is contained in:
parent
45e6123de8
commit
27c1135d30
2 changed files with 8 additions and 19 deletions
|
@ -200,7 +200,6 @@ private:
|
|||
Region(VirtualRange const&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, OwnPtr<KString>, Region::Access access, Cacheable, bool shared);
|
||||
|
||||
[[nodiscard]] bool remap_vmobject_page(size_t page_index, bool with_flush = true);
|
||||
[[nodiscard]] bool do_remap_vmobject_page(size_t page_index, bool with_flush = true);
|
||||
|
||||
void set_access_bit(Access access, bool b)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue