mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
VM: Don't remap each Region page twice in page_in().
page_in_from_inode() will map the page after reading it from disk, so we don't need to remap it once again.
This commit is contained in:
parent
6cabd34b93
commit
ba58b4617d
Notes:
sideshowbarker
2024-07-19 13:48:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ba58b4617d0
@ -59,6 +59,7 @@ bool Region::page_in()
|
||||
bool success = MM.page_in_from_inode(*this, i);
|
||||
if (!success)
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
MM.remap_region_page(*this, i, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user