patch-2.1.87 linux/mm/memory.c

Next file: linux/net/bridge/br.c
Previous file: linux/kernel/time.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.86/linux/mm/memory.c linux/mm/memory.c
@@ -877,12 +877,14 @@
 		do_no_page(tsk, vma, address, write_access, pte, entry);
 		return;
 	}
-	set_pte(pte, pte_mkyoung(entry));
+	entry = pte_mkyoung(entry);
+	set_pte(pte, entry);
 	flush_tlb_page(vma, address);
 	if (!write_access)
 		return;
 	if (pte_write(entry)) {
-		set_pte(pte, pte_mkdirty(entry));
+		entry = pte_mkdirty(entry);
+		set_pte(pte, entry);
 		flush_tlb_page(vma, address);
 		return;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov