From 65d37f163add1c6ead3a63788acb2f9590159f94 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Fri, 27 Oct 2023 14:12:38 +0200 Subject: s390/cmma: move arch_set_page_dat() to header file In order to be usable for early boot code move the simple arch_set_page_dat() function to header file, and add its counter-part arch_set_page_nodat(). Also change the parameters, and the function name 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 Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- arch/s390/mm/page-states.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'arch/s390/mm/page-states.c') diff --git a/arch/s390/mm/page-states.c b/arch/s390/mm/page-states.c index 7dc75dd05f48..511c43aad5df 100644 --- a/arch/s390/mm/page-states.c +++ b/arch/s390/mm/page-states.c @@ -153,10 +153,3 @@ void arch_alloc_page(struct page *page, int order) else __set_page_stable_nodat(page_to_virt(page), 1UL << order); } - -void arch_set_page_dat(struct page *page, int order) -{ - if (!cmma_flag) - return; - __set_page_stable_dat(page_to_virt(page), 1UL << order); -} -- cgit v1.2.3