s390/mm: Convert gmap_make_secure to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 22 Mar 2024 16:11:47 +0000 (16:11 +0000)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 9 Apr 2024 15:29:57 +0000 (17:29 +0200)
commitd35c34bb32f2cc4ec0b52e91ad7a8fcab55d7856
treea59e10589c735232938a2232895af22d1f49aebc
parent259e660d91d0e7261ae0ee37bb37266d6006a546
s390/mm: Convert gmap_make_secure to use a folio

Remove uses of deprecated page APIs, and move the check for large
folios to here to avoid taking the folio lock if the folio is too large.
We could do better here by attempting to split the large folio, but I'll
leave that improvement for someone who can test it.

Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240322161149.2327518-3-willy@infradead.org
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/uv.c