Skip to contentSkip to conversation

fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set

PATCH In review Pierre Peiffer 2 participants 3 messages Apr 20, 2007

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

PATCH 1/1 fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set

Hi,

This is a fix against the patch do-not-group-pages-by-mobility-type-on-low-memory-systems.patch (include in -mm tree):
The error "page_group_by_mobility_disabled undefinied" occured if CONFIG_PAGE_GROUP_BY_MOBILITY is not set.

---
 mm/page_alloc.c |    5 +++++
 1 file changed, 5 insertions(+)
mm/page_alloc.c +5 -0
Index: b/mm/page_alloc.c
===================================================================
@@ -2297,6 +2297,7 @@ void __meminit build_all_zonelists(void)
 	}
 	vm_total_pages = nr_free_pagecache_pages();
 
+#ifdef CONFIG_PAGE_GROUP_BY_MOBILITY
 	/*
 	 * Disable grouping by mobility if the number of pages in the
 	 * system is too low to allow the mechanism to work. It would be
@@ -2313,6 +2314,10 @@ void __meminit build_all_zonelists(void)
 			num_online_nodes(),
 			page_group_by_mobility_disabled ? "off" : "on",
 			vm_total_pages);
+#else
+	printk("Built %i zonelists.  Total pages: %ld\n",
+	       num_online_nodes(), vm_total_pages);
+#endif
 }
 
 /*
Signature · 1 line
Pierre
#1 lore raw
Quoted 10 lines · Pierre Peiffer

Hi,

This is a fix against the patch do-not-group-pages-by-mobility-type-on-low-memory-systems.patch (include in -mm tree):
The error "page_group_by_mobility_disabled undefinied" occured if CONFIG_PAGE_GROUP_BY_MOBILITY is not set.

Hi,

Your fix looks correct but the compile-time option CONFIG_PAGE_GROUP_BY_MOBILITY was removed in a patch I sent to Andrew two days ago. It went into mm-commits last night so this problem should no longer exist.

Quoted 32 lines

---
mm/page_alloc.c | 5 +++++

1 file changed, 5 insertions(+)

Index: b/mm/page_alloc.c
===================================================================

mm/page_alloc.c +5 -0
@@ -2297,6 +2297,7 @@ void __meminit build_all_zonelists(void)
 	}
 	vm_total_pages = nr_free_pagecache_pages();
 
+#ifdef CONFIG_PAGE_GROUP_BY_MOBILITY
 	/*
 	 * Disable grouping by mobility if the number of pages in the
 	 * system is too low to allow the mechanism to work. It would be
@@ -2313,6 +2314,10 @@ void __meminit build_all_zonelists(void)
 			num_online_nodes(),
 			page_group_by_mobility_disabled ? "off" : "on",
 			vm_total_pages);
+#else
+	printk("Built %i zonelists.  Total pages: %ld\n",
+	       num_online_nodes(), vm_total_pages);
+#endif
 }
 
 /*
Signature · 2 lines
-- 
Pierre
Signature · 3 lines
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
#2 lore raw
Quoted 4 lines

Hi,

Your fix looks correct but the compile-time option CONFIG_PAGE_GROUP_BY_MOBILITY was removed in a patch I sent to Andrew two days ago. It went into mm-commits last night so this problem should no longer exist.

Ah ok, fine. Just forget it in this case :)
Thanks,

Signature · 1 line
Pierre