]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/uv: Convert PG_arch_1 users to only work on small folios
authorDavid Hildenbrand <david@redhat.com>
Wed, 8 May 2024 18:29:49 +0000 (20:29 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 5 Jun 2024 15:17:24 +0000 (17:17 +0200)
commit036c0e104bd2cf45304a3795fd8ec985ea01bfe8
treee4bde4515e10d9e378d9474da829415d163fbee2
parenteef88fe45ac9783e0dd108b033c1e933c38cab34
s390/uv: Convert PG_arch_1 users to only work on small folios

Now that make_folio_secure() may only set PG_arch_1 for small folios,
let's convert relevant remaining UV code to only work on (small) folios
and simply reject large folios early. This way, we'll never end up
touching PG_arch_1 on tail pages of a large folio in UV code.

The folio_get()/folio_put() for functions that are documented to already
hold a folio reference look weird; likely they are required to make
concurrent gmap_make_secure() back off because the caller might only hold
an implicit reference due to the page mapping. So leave that alone for now.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20240508182955.358628-5-david@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/page.h
arch/s390/kernel/uv.c