From ba58b4617d0a7fe4e1bd4fb78f2c284b9b239131 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 1 Jun 2019 15:44:48 +0200 Subject: [PATCH] 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. --- Kernel/VM/Region.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp index 3c93cfff7c5..15fddd0a5f3 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); }