Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/tlb: Add missing TLB range adjustment

While converting to generic mmu_gather with commit 9de7d833e370
("s390/tlb: Convert to generic mmu_gather") __tlb_adjust_range()
is called from pte|pmd|p4d_free_tlb(), but not for pud_free_tlb().

__tlb_adjust_range() adjusts the span of TLB range to be flushed,
but s390 does not make use of it. Thus, this change is only for
consistency.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>

+1 -1
+1 -1
arch/s390/include/asm/tlb.h
··· 140 140 { 141 141 if (mm_pud_folded(tlb->mm)) 142 142 return; 143 + __tlb_adjust_range(tlb, address, PAGE_SIZE); 143 144 tlb->mm->context.flush_mm = 1; 144 145 tlb->freed_tables = 1; 145 146 tlb->cleared_p4ds = 1; 146 147 tlb_remove_ptdesc(tlb, pud); 147 148 } 148 - 149 149 150 150 #endif /* _S390_TLB_H */