patch-2.4.0-test12 linux/mm/page_alloc.c

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

diff -u --recursive --new-file v2.4.0-test11/linux/mm/page_alloc.c linux/mm/page_alloc.c
@@ -90,8 +90,6 @@
 		BUG();
 	if (PageDecrAfter(page))
 		BUG();
-	if (PageDirty(page))
-		BUG();
 	if (PageActive(page))
 		BUG();
 	if (PageInactiveDirty(page))
@@ -99,7 +97,7 @@
 	if (PageInactiveClean(page))
 		BUG();
 
-	page->flags &= ~(1<<PG_referenced);
+	page->flags &= ~((1<<PG_referenced) | (1<<PG_dirty));
 	page->age = PAGE_AGE_START;
 	
 	zone = page->zone;

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