Skip to contentSkip to conversation

New zone ZONE_EASY_RECLAIM take 3. (disable gfp_easy_reclaim bit)[5/5]

PATCH New Yasunori Goto 1 participant 1 message Dec 10, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New zone ZONE_EASY_RECLAIM take 3. (disable gfp_easy_reclaim bit)[5/5]

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.

mm/filemap.c +1 -1
Index: zone_reclaim/mm/filemap.c
===================================================================
@@ -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);
Signature · 8 lines
Yasunori Goto 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>