patch-2.4.2 linux/mm/memory.c

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

diff -u --recursive --new-file v2.4.1/linux/mm/memory.c linux/mm/memory.c
@@ -858,6 +858,8 @@
 		UnlockPage(old_page);
 		/* FallThrough */
 	case 1:
+		if (PageReserved(old_page))
+			break;
 		flush_cache_page(vma, address);
 		establish_pte(vma, address, page_table, pte_mkyoung(pte_mkdirty(pte_mkwrite(pte))));
 		spin_unlock(&mm->page_table_lock);
@@ -1200,6 +1202,7 @@
 	pgd_t *pgd;
 	pmd_t *pmd;
 
+	current->state = TASK_RUNNING;
 	pgd = pgd_offset(mm, address);
 	pmd = pmd_alloc(pgd, address);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)