s390/mm: Allocate page table with PAGE_SIZE granularity
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Mon, 4 Aug 2025 09:57:03 +0000 (11:57 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 5 Aug 2025 12:23:20 +0000 (14:23 +0200)
commitdaa8af80d283ee9a7d42dd6f164a65036665b9d4
tree965eb84d623fb4e9266cded984b41192e4bc7d35
parent10dd5a0009898ba35eafeb6087e5c83b84742ff1
s390/mm: Allocate page table with PAGE_SIZE granularity

Make vmem_pte_alloc() consistent by always allocating page table of
PAGE_SIZE granularity, regardless of whether page_table_alloc() (with
slab) or memblock_alloc() is used. This ensures page table can be fully
freed when the corresponding page table entries are removed.

Fixes: d08d4e7cd6bf ("s390/mm: use full 4KB page for 2KB PTE")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/mm/vmem.c