* [Patch] New zone ZONE_EASY_RECLAIM take 3. (disable gfp_easy_reclaim bit)[5/5]
@ 2005-12-10 11:03 Yasunori Goto
0 siblings, 0 replies; only message in thread
From: Yasunori Goto @ 2005-12-10 11:03 UTC (permalink / raw)
To: Linux Hotplug Memory Support, linux-mm; +Cc: Joel Schopp
This is to disable __GFP_EASY_RECLAIM flag at add_to_page_cache().
If this patch is not applied, cache_grow() checks and call BUG(),
at here.
if (flags & ~(SLAB_DMA|SLAB_LEVEL_MASK|SLAB_NO_GROW))
BUG();
This patch is to solve it.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Index: zone_reclaim/mm/filemap.c
===================================================================
--- zone_reclaim.orig/mm/filemap.c 2005-12-10 17:12:57.000000000 +0900
+++ zone_reclaim/mm/filemap.c 2005-12-10 17:18:57.000000000 +0900
@@ -395,7 +395,7 @@ int filemap_write_and_wait_range(struct
int add_to_page_cache(struct page *page, struct address_space *mapping,
pgoff_t offset, gfp_t gfp_mask)
{
- int error = radix_tree_preload(gfp_mask & ~__GFP_HIGHMEM);
+ int error = radix_tree_preload(gfp_mask & ~(__GFP_HIGHMEM | __GFP_EASY_RECLAIM));
if (error == 0) {
write_lock_irq(&mapping->tree_lock);
--
Yasunori Goto
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-10 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-10 11:03 [Patch] New zone ZONE_EASY_RECLAIM take 3. (disable gfp_easy_reclaim bit)[5/5] Yasunori Goto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox