s390/mm: cleanup init_new_context() callback
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 19 Mar 2020 12:44:50 +0000 (13:44 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 28 Mar 2020 11:46:12 +0000 (12:46 +0100)
commit1058c163dc31b3335c9cf7c4fa42ccf87be73017
tree3951d9022fb7525320029fb9cb18593f6a2d31ba
parentf75556081afe5a565c2ce200837406303a59ae2b
s390/mm: cleanup init_new_context() callback

The set of values asce_limit may be assigned with is TASK_SIZE_MAX,
_REGION1_SIZE, _REGION2_SIZE and 0 as a special case if the callback
was called from execve().
Do VM_BUG_ON() if asce_limit is something else.

Save few CPU cycles by removing unnecessary asce_limit re-assignment
in case of 3-level task and redundant PGD entry type reconstruction.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/mmu_context.h
arch/s390/include/asm/pgalloc.h