summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-01 15:44:48 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-01 15:45:50 +0200
commitba58b4617d0a7fe4e1bd4fb78f2c284b9b239131 (patch)
tree31473edecfa8b57a3394e864804be8b55e334594 /Kernel
parent6cabd34b9391bb9edc7dfc3c7d9e29957d99a3ad (diff)
downloadserenity-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.cpp1
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);
}