patch-1.3.2 linux/mm/memory.c

Next file: linux/mm/swap.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.1/linux/mm/memory.c linux/mm/memory.c
@@ -504,10 +504,6 @@
 		pte_clear(pte);
 		if (offset >= high_memory || (mem_map[MAP_NR(offset)] & MAP_PAGE_RESERVED))
 			*pte = mk_pte(offset, prot);
-		else if (mem_map[MAP_NR(offset)]) {
-			mem_map[MAP_NR(offset)]++;
-			*pte = mk_pte(offset, prot);
-		}
 		forget_pte(oldpage);
 		address += PAGE_SIZE;
 		offset += PAGE_SIZE;

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