Title: [8570] trunk/mm/page_alloc.c: Fix bug[#5968] drop_pagecache for __GFP_NOFAIL as well.
Revision
8570
Author
sonicz
Date
2010-03-29 07:17:06 -0400 (Mon, 29 Mar 2010)

Log Message

Fix bug[#5968] drop_pagecache for __GFP_NOFAIL as well.

Modified Paths

Diff

Modified: trunk/mm/page_alloc.c (8569 => 8570)


--- trunk/mm/page_alloc.c	2010-03-29 11:10:16 UTC (rev 8569)
+++ trunk/mm/page_alloc.c	2010-03-29 11:17:06 UTC (rev 8570)
@@ -1602,10 +1602,6 @@
 	if (gfp_mask & __GFP_NORETRY)
 		return 0;
 
-#ifndef CONFIG_MMU
-	drop_pagecache();
-#endif
-
 	/*
 	 * In this implementation, order <= PAGE_ALLOC_COSTLY_ORDER
 	 * means __GFP_NOFAIL, but that may not be true in other
@@ -1734,6 +1730,9 @@
 	struct page *page;
 
 	do {
+#ifndef CONFIG_MMU
+		drop_pagecache();
+#endif
 		page = get_page_from_freelist(gfp_mask, nodemask, order,
 			zonelist, high_zoneidx, ALLOC_NO_WATERMARKS,
 			preferred_zone, migratetype);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to