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

Log Message

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

Modified Paths

Diff

Modified: branches/2009R1/mm/page_alloc.c (8570 => 8571)


--- branches/2009R1/mm/page_alloc.c	2010-03-29 11:17:06 UTC (rev 8570)
+++ branches/2009R1/mm/page_alloc.c	2010-03-29 11:18:17 UTC (rev 8571)
@@ -1550,6 +1550,9 @@
 			&& !in_interrupt()) {
 		if (!(gfp_mask & __GFP_NOMEMALLOC)) {
 nofail_alloc:
+#ifndef CONFIG_MMU
+			drop_pagecache();
+#endif
 			/* go through the zonelist yet again, ignoring mins */
 			page = get_page_from_freelist(gfp_mask, nodemask, order,
 				zonelist, high_zoneidx, ALLOC_NO_WATERMARKS);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to