kernel/vm: Inherit the temporariness of source cache on split.

Otherwise pages from it would later be tried to be written back with
nowhere to go in case of temporary caches.

Change-Id: I81e7335408c419a9b2c7bbb31290d551f5508d56
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2586
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Michael Lotz 2020-05-02 21:35:01 +02:00 committed by waddlesplash
parent d2dd287e5e
commit 65598ca615
1 changed files with 1 additions and 0 deletions

View File

@ -739,6 +739,7 @@ cut_area(VMAddressSpace* addressSpace, VMArea* area, addr_t address,
}
secondCache->Lock();
secondCache->temporary = cache->temporary;
// Transfer the concerned pages from the first cache.
secondCache->MovePageRange(cache, secondBase - area->Base()