patch-1.3.84 linux/mm/memory.c

Next file: linux/net/core/skbuff.c
Previous file: linux/mm/kmalloc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.83/linux/mm/memory.c linux/mm/memory.c
@@ -755,7 +755,7 @@
 	pte = pte_wrprotect(mk_pte(ZERO_PAGE, vma->vm_page_prot));
 	if (write_access) {
 		unsigned long page = get_free_page(GFP_KERNEL);
-		pte = pte_mkwrite(mk_pte(page, vma->vm_page_prot));
+		pte = pte_mkwrite(pte_mkdirty(mk_pte(page, vma->vm_page_prot)));
 		vma->vm_mm->rss++;
 		tsk->min_flt++;
 		if (!page) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this