]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/uv: gmap_make_secure() cleanups for further changes
authorDavid Hildenbrand <david@redhat.com>
Wed, 8 May 2024 18:29:47 +0000 (20:29 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 5 Jun 2024 15:17:24 +0000 (17:17 +0200)
commit68ad4743beaa7187eb026f1f9bec8848ecf5ed43
tree3c0e02d025c6cd3e5bf8fa755b7b1db70d798fc0
parent3f29f6537f54d74e64bac0a390fb2e26da25800d
s390/uv: gmap_make_secure() cleanups for further changes

Let's factor out handling of LRU cache draining and convert the if-else
chain to a switch-case.

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