s390/mm: split lowcore pages with set_memory_4k()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 5 Sep 2022 12:18:27 +0000 (14:18 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 7 Sep 2022 12:04:52 +0000 (14:04 +0200)
commitb193d2d4d01ecf211c935bcb7409a69768851c6e
tree25ec55cc8b818a73a81af925236f299564899660
parentbf2ce3855c7d446669f89999d523d91048b0daf9
s390/mm: split lowcore pages with set_memory_4k()

Use set_memory_4k() to split lowcore pages within the kernel mapping
instead of using the quite subtle !addr check within modify_pmd_table()
and modify_pud_table() to prevent large pages for address zero.

With this lowcore might be mapped with 1MB / 2GB frames and only later
will be split. This way this mapping is handled like every other.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/vmem.c