s390/vmalloc: fix VMALLOC_START calculation
authorMikhail Zaslonko <zaslonko@linux.ibm.com>
Wed, 10 Oct 2018 11:44:45 +0000 (13:44 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 11 Oct 2018 15:02:38 +0000 (17:02 +0200)
commit5eaf436e0e5b7ce05ef9371e82f87319bc9a5173
tree6950b59cb976262b6f14c363b70c7834d07d5cf8
parentc72251ad879056d096d39db21c08cb52e481eb2d
s390/vmalloc: fix VMALLOC_START calculation

With the introduction of the module area on top of the vmalloc area, the
calculation of VMALLOC_START in setup_memory_end() function hasn't been
adjusted. As a result we got vmalloc area 2 Gb (MODULES_LEN) smaller than
it should be and the preceding vmemmap area got extra memory instead.
The patch fixes this calculation error although there were no visible
negative effects.
Apart from that, change 'tmp' variable to 'vmemmap' in memory_end
calculation for better readability.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c