Skip to contentSkip to conversation

x86/mm/tlb: Correct the comments in flush_tlb_mm_range() and arch_tlbbatch_flush()

PATCH New Yuntao Wang 1 participant 1 message Aug 28, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/mm/tlb: Correct the comments in flush_tlb_mm_range() and arch_tlbbatch_flush()

Commit 4c1ba3923e6c ("x86/mm/tlb: Unify flush_tlb_func_local() and flush_tlb_func_remote()") unified flush_tlb_func_local() and flush_tlb_func_remote() into flush_tlb_func(). However, in commit 4ce94eabac16 ("x86/mm/tlb: Flush remote and local TLBs concurrently"), the newly introduced comments still refer to flush_tlb_func_local() when they should use flush_tlb_func().

Correct these comments.

---
 arch/x86/mm/tlb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/tlb.c +2 -2
index 44ac64f3a047..8b874ec90536 100644
@@ -1021,7 +1021,7 @@ void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,
 	/*
 	 * flush_tlb_multi() is not optimized for the common case in which only
 	 * a local TLB flush is needed. Optimize this use-case by calling
-	 * flush_tlb_func_local() directly in this case.
+	 * flush_tlb_func() directly in this case.
 	 */
 	if (cpumask_any_but(mm_cpumask(mm), cpu) < nr_cpu_ids) {
 		flush_tlb_multi(mm_cpumask(mm), info);
@@ -1254,7 +1254,7 @@ void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch)
 	/*
 	 * flush_tlb_multi() is not optimized for the common case in which only
 	 * a local TLB flush is needed. Optimize this use-case by calling
-	 * flush_tlb_func_local() directly in this case.
+	 * flush_tlb_func() directly in this case.
 	 */
 	if (cpumask_any_but(&batch->cpumask, cpu) < nr_cpu_ids) {
 		flush_tlb_multi(&batch->cpumask, info);
Signature · 1 line
2.46.0