]> Git Repo - linux.git/commit
mm/mmu_gather: pass "delay_rmap" instead of encoded page to __tlb_remove_page_size()
authorDavid Hildenbrand <[email protected]>
Wed, 14 Feb 2024 20:44:30 +0000 (21:44 +0100)
committerAndrew Morton <[email protected]>
Thu, 22 Feb 2024 23:27:17 +0000 (15:27 -0800)
commitc30d6bc8d0153630e600e8f67ba88c670d9e1b0c
tree04b119d8c6f5dab050a8f00f96d9e1c1492fa950
parent2b42a7e531509577bd822aece610cd6d0dbf0dd7
mm/mmu_gather: pass "delay_rmap" instead of encoded page to __tlb_remove_page_size()

We have two bits available in the encoded page pointer to store additional
information.  Currently, we use one bit to request delay of the rmap
removal until after a TLB flush.

We want to make use of the remaining bit internally for batching of
multiple pages of the same folio, specifying that the next encoded page
pointer in an array is actually "nr_pages".  So pass page + delay_rmap
flag instead of an encoded page, to handle the encoding internally.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Reviewed-by: Ryan Roberts <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: "Naveen N. Rao" <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Peter Zijlstra (Intel) <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Yin Fengwei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
arch/s390/include/asm/tlb.h
include/asm-generic/tlb.h
mm/mmu_gather.c
This page took 0.057247 seconds and 4 git commands to generate.