s390/hypfs: simplify memory allocation
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 4 Jul 2023 13:47:11 +0000 (15:47 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 24 Jul 2023 10:12:22 +0000 (12:12 +0200)
commit83f95671943e6394eda4d20fa9458d4a2ae13c5c
tree243c4f037b6824e0f08bd224e453d644ef65e226
parent5ac8c72462cdad56e37981eb2172c5baa1ea40d6
s390/hypfs: simplify memory allocation

Simplify memory allocation for diagnose 204 memory buffer:

- allocate with __vmalloc_node() to enure page alignment
- allocate real / physical memory area also within vmalloc area and handle
  vmalloc to real / physical address translation within diag204().

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/hypfs/hypfs_diag.c
arch/s390/kernel/diag.c