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:
Andreas Kling 2019-06-01 15:44:48 +02:00
parent 6cabd34b93
commit ba58b4617d
Notes: sideshowbarker 2024-07-19 13:48:29 +09:00

View File

@ -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);
}