summaryrefslogtreecommitdiffstats
path: root/arch/s390/mm
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2023-01-28 23:55:04 +0100
committerHeiko Carstens <hca@linux.ibm.com>2023-02-06 11:13:54 +0100
commitbf64f0517e5d0d8f3248143fc49535c1d1594b4f (patch)
treeccfc742dbf1f7d39fd3dbc308bcae23f938040ed /arch/s390/mm
parents390/boot: fix mem_detect extended area allocation (diff)
downloadlinux-bf64f0517e5d0d8f3248143fc49535c1d1594b4f.tar.xz
linux-bf64f0517e5d0d8f3248143fc49535c1d1594b4f.zip
s390/mem_detect: handle online memory limit just once
Introduce mem_detect_truncate() to cut any online memory ranges above established identity mapping size, so that mem_detect users wouldn't have to do it over and over again. Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com> Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r--arch/s390/mm/kasan_init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/mm/kasan_init.c b/arch/s390/mm/kasan_init.c
index 9d4f3138b0e7..1aaea718af73 100644
--- a/arch/s390/mm/kasan_init.c
+++ b/arch/s390/mm/kasan_init.c
@@ -247,8 +247,6 @@ void __init kasan_early_init(void)
* The rest [memsize, ident_map_size] if memsize < ident_map_size
* could be mapped/unmapped dynamically later during memory hotplug.
*/
- memsize = min(memsize, ident_map_size);
-
BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, P4D_SIZE));
BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, P4D_SIZE));