s390/mm: Make gmap_protect_range more modular
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 13 Jul 2018 10:28:16 +0000 (11:28 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 30 Jul 2018 10:20:17 +0000 (11:20 +0100)
commit5a045bb9c44caebcf4e88bf78343166596c0014b
treecdbb52745f9e1744adfa0c9fdb15d410c30bfd85
parent7daf201d7fe8334e2d2364d4e8ed3394ec9af819
s390/mm: Make gmap_protect_range more modular

This patch reworks the gmap_protect_range logic and extracts the pte
handling into an own function. Also we do now walk to the pmd and make
it accessible in the function for later use. This way we can add huge
page handling logic more easily.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/gmap.c