From e0aceaae76d02250dc6e891cf7283245b971dfe9 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 13 Apr 2003 21:05:37 -0700 Subject: [PATCH] [PATCH] flush_cache_mm in zap_page_range unmap_vmas() eventually calls tlb_start_vma(), where most architectures flush caches as necessary. The flush here seems to make the flush_cache_range() in zap_page_range() redundant, and therefore can be removed. --- mm/memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index e76721ba9c066..23c6cc4ca4346 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -601,7 +601,6 @@ void zap_page_range(struct vm_area_struct *vma, lru_add_drain(); spin_lock(&mm->page_table_lock); - flush_cache_range(vma, address, end); tlb = tlb_gather_mmu(mm, 0); unmap_vmas(&tlb, mm, vma, address, end, &nr_accounted); tlb_finish_mmu(tlb, address, end); -- 2.53.0