Thread (7 messages) 7 messages, 3 authors, 2025-12-16

Re: [PATCH v2 2/2] mm: Remove tlb_flush_reason::NR_TLB_FLUSH_REASONS

From: Lorenzo Stoakes <hidden>
Date: 2025-12-15 12:41:02
Also in: linux-arch, linux-mm, lkml

On Fri, Dec 12, 2025 at 04:08:08AM -0500, Tal Zussman wrote:
This has been unused since it was added 11 years ago in commit
d17d8f9dedb9 ("x86/mm: Add tracepoints for TLB flushes").

Acked-by: David Hildenbrand <redacted>
Reviewed-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Tal Zussman <redacted>
Hmm, guess just a way of counting the number of reasons, but if nobody's using
it that's silly. So:

Reviewed-by: Lorenzo Stoakes <redacted>
quoted hunk ↗ jump to hunk
---
 include/linux/mm_types.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 9f6de068295d..42af2292951d 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -1631,7 +1631,6 @@ enum tlb_flush_reason {
 	TLB_LOCAL_MM_SHOOTDOWN,
 	TLB_REMOTE_SEND_IPI,
 	TLB_REMOTE_WRONG_CPU,
-	NR_TLB_FLUSH_REASONS,
 };

 /**

--
2.39.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help