s390/cmma: move set_page_stable() and friends to header file
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 27 Oct 2023 12:12:37 +0000 (14:12 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Sun, 5 Nov 2023 21:34:58 +0000 (22:34 +0100)
commita3e89e20fe00209779eb3e419621070b9158acdb
tree408b99b38141eb30c1392d16e6f2e43038298736
parent468a3bc2b7b955a7cf97d47c6022bf1ae4a538a3
s390/cmma: move set_page_stable() and friends to header file

In order to be usable for early boot code move the simple set_page_xxx()
function to header file. Also change the parameters, and the function names
slightly.

This is required since there aren't any struct pages available in early
boot code, and renaming of functions is done to make sure that all users
are converted to the new API.

Instead of a pointer to a struct page a virtual address is passed, and
instead of an order the number of pages for which the page state needs be
set.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/page-states.h
arch/s390/mm/page-states.c