mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue