lkml.org 
[lkml]   [1999]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectsmall patch for do_wp_page
Date
From
As far as I can tell there is no point flushing the ZERO_PAGE to RAM.  Does 
this patch seem reasonable? (It's against 2.3.12 if that matters.)

p.

--- linux/mm/memory.c Sun Aug 8 18:54:35 1999
+++ linux/mm/memory.c Tue Aug 10 20:51:23 1999
@@ -60,6 +60,7 @@ static inline void copy_cow_page(unsigne
return;
}
copy_page(to, from);
+ flush_page_to_ram(from);
}

mem_map_t * mem_map = NULL;
@@ -848,7 +849,6 @@ static int do_wp_page(struct task_struct
if (PageReserved(page))
++vma->vm_mm->rss;
copy_cow_page(old_page,new_page);
- flush_page_to_ram(old_page);
flush_page_to_ram(new_page);
flush_cache_page(vma, address);
set_pte(page_table, pte_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot))));


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.042 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site