]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] flush_cache_mm in zap_page_range
authorRussell King <rmk@arm.linux.org.uk>
Mon, 14 Apr 2003 04:05:37 +0000 (21:05 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 14 Apr 2003 04:05:37 +0000 (21:05 -0700)
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

index e76721ba9c0664d132af72d0706eef16ff2f02f3..23c6cc4ca43463cfe2074fe92c136b68b82177dd 100644 (file)
@@ -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);