From: NIIBE Y. <gn...@m1...> - 2001-12-05 01:40:13
|
Here's a patch. 2001-12-05 NIIBE Yutaka <gn...@m1...> * mm/memory.c (do_wp_page): Re-introduce ifdef-out-ing flush_cache_page. Index: mm/memory.c =================================================================== RCS file: /cvsroot/linuxsh/linux/mm/memory.c,v retrieving revision 1.2 diff -u -3 -p -r1.2 memory.c --- mm/memory.c 2001/12/03 22:15:35 1.2 +++ mm/memory.c 2001/12/05 01:38:12 @@ -917,7 +917,9 @@ static int do_wp_page(struct mm_struct * int reuse = can_share_swap_page(old_page); unlock_page(old_page); if (reuse) { +#if 0 /* This is not needed for VIPT cache, performance goes bad if we flush */ flush_cache_page(vma, address); +#endif establish_pte(vma, address, page_table, pte_mkyoung(pte_mkdirty(pte_mkwrite(pte)))); spin_unlock(&mm->page_table_lock); return 1; /* Minor fault */ -- |