Skip to content

Commit be90cbc

Browse files
committed
s390/tlb: Use mm_has_pgste() instead of mm_alloc_pgste()
JIRA: https://issues.redhat.com/browse/RHEL-113440 commit 9291ea0 Author: Heiko Carstens <hca@linux.ibm.com> Date: Mon Mar 10 12:42:59 2025 +0100 s390/tlb: Use mm_has_pgste() instead of mm_alloc_pgste() An mm has pgstes only after s390_enable_sie() has been called, while mm_alloc_pgste() may be always true (e.g. via sysctl setting). Limit the calls to gmap_unlink() in pte_free_tlb() to those cases where there might be something to unlink. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
1 parent 9d93d78 commit be90cbc

File tree

1 file changed

+1
-1
lines changed
  • arch/s390/include/asm

1 file changed

+1
-1
lines changed

arch/s390/include/asm/tlb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static inline void pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte,
8585
tlb->mm->context.flush_mm = 1;
8686
tlb->freed_tables = 1;
8787
tlb->cleared_pmds = 1;
88-
if (mm_alloc_pgste(tlb->mm))
88+
if (mm_has_pgste(tlb->mm))
8989
gmap_unlink(tlb->mm, (unsigned long *)pte, address);
9090
tlb_remove_ptdesc(tlb, pte);
9191
}

0 commit comments

Comments
 (0)