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

Configure Feed

Select the types of activity you want to include in your feed.

mm/mmu_gather: remove unused __tlb_remove_page()

Nobody is using __tlb_remove_page() now, clean it up.

And also remove the code comment above tlb_remove_page() because it's not
meaningful any more.

Link: https://lkml.kernel.org/r/Z6si0/A/zzEF/bFJ@MiWiFi-R3L-srv
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Baoquan He and committed by
Andrew Morton
1d23b940 6fbea852

-10
-10
include/asm-generic/tlb.h
··· 489 489 tlb_flush_mmu(tlb); 490 490 } 491 491 492 - static __always_inline bool __tlb_remove_page(struct mmu_gather *tlb, 493 - struct page *page, bool delay_rmap) 494 - { 495 - return __tlb_remove_page_size(tlb, page, delay_rmap, PAGE_SIZE); 496 - } 497 - 498 - /* tlb_remove_page 499 - * Similar to __tlb_remove_page but will call tlb_flush_mmu() itself when 500 - * required. 501 - */ 502 492 static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page) 503 493 { 504 494 return tlb_remove_page_size(tlb, page, PAGE_SIZE);