Title: [8568] trunk/mm/page_alloc.c: Fix bug[#5968] Do drop_pagecache() after try_to_free_pages() for NOMMU.
- Revision
- 8568
- Author
- sonicz
- Date
- 2010-03-29 07:09:38 -0400 (Mon, 29 Mar 2010)
Log Message
Fix bug[#5968] Do drop_pagecache() after try_to_free_pages() for NOMMU.
Doing drop_pagecache earlier sometimes leads to try_to_free_pages() return 0
endlessly with __GFP_FS not set in gfp_mask.
Modified Paths
Diff
Modified: trunk/mm/page_alloc.c (8567 => 8568)
--- trunk/mm/page_alloc.c 2010-03-29 10:33:43 UTC (rev 8567)
+++ trunk/mm/page_alloc.c 2010-03-29 11:09:38 UTC (rev 8568)
@@ -1846,10 +1846,6 @@
if (page)
goto got_pg;
-#ifndef CONFIG_MMU
- drop_pagecache();
-#endif
-
rebalance:
/* Allocate without watermarks if the context allows */
if (alloc_flags & ALLOC_NO_WATERMARKS) {
@@ -1881,6 +1877,10 @@
if (page)
goto got_pg;
+#ifndef CONFIG_MMU
+ drop_pagecache();
+#endif
+
/*
* If we failed to make any progress reclaiming, then we are
* running out of options and have to consider going OOM
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits