patch-1.3.3 linux/mm/memory.c

Next file: linux/Makefile
Previous file: linux/kernel/panic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.2/linux/mm/memory.c linux/mm/memory.c
@@ -831,10 +831,6 @@
 	if (pte_dirty(from)) {
 		if (!(from_area->vm_flags & VM_SHARED))
 			return 0;
-		if (pte_write(from)) {
-			printk("nonwritable, but dirty, shared page\n");
-			return 0;
-		}
 	}
 /* is the page reasonable at all? */
 	if (pte_page(from) >= high_memory)
@@ -869,10 +865,6 @@
 		if (in_swap_cache(pte_page(from))) {
 			if (!(from_area->vm_flags & VM_SHARED))
 				return 0;
-			if (!pte_write(from)) {
-				printk("nonwritable, but dirty, shared page\n");
-				return 0;
-			}
 		}
 		copy_page(pte_page(from), newpage);
 		*to_table = mk_pte(newpage, to_area->vm_page_prot);


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