diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-01 15:44:48 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-01 15:45:50 +0200 |
commit | ba58b4617d0a7fe4e1bd4fb78f2c284b9b239131 (patch) | |
tree | 31473edecfa8b57a3394e864804be8b55e334594 /Kernel | |
parent | 6cabd34b9391bb9edc7dfc3c7d9e29957d99a3ad (diff) | |
download | serenity-ba58b4617d0a7fe4e1bd4fb78f2c284b9b239131.zip |
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.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/VM/Region.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp index 3c93cfff7c..15fddd0a5f 100644 --- a/Kernel/VM/Region.cpp +++ b/Kernel/VM/Region.cpp @@ -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); } |