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:
parent
d2dd287e5e
commit
65598ca615
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue