* [PATCH -mm] fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set
@ 2007-04-20 8:07 Pierre Peiffer
2007-04-20 8:42 ` Mel Gorman
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Peiffer @ 2007-04-20 8:07 UTC (permalink / raw)
To: Mel Gorman, Andy Whitcroft; +Cc: LKML
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.
Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net>
---
mm/page_alloc.c | 5 +++++
1 file changed, 5 insertions(+)
Index: b/mm/page_alloc.c
===================================================================
--- a/mm/page_alloc.c
+++ 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
}
/*
--
Pierre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -mm] fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set
2007-04-20 8:07 [PATCH -mm] fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set Pierre Peiffer
@ 2007-04-20 8:42 ` Mel Gorman
2007-04-20 8:46 ` Pierre Peiffer
0 siblings, 1 reply; 3+ messages in thread
From: Mel Gorman @ 2007-04-20 8:42 UTC (permalink / raw)
To: Pierre Peiffer; +Cc: Andy Whitcroft, LKML
On Fri, 20 Apr 2007, Pierre Peiffer wrote:
> 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.
>
> Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net>
>
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.
> ---
> mm/page_alloc.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> Index: b/mm/page_alloc.c
> ===================================================================
> --- a/mm/page_alloc.c
> +++ 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
> }
>
> /*
>
>
> --
> Pierre
>
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -mm] fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set
2007-04-20 8:42 ` Mel Gorman
@ 2007-04-20 8:46 ` Pierre Peiffer
0 siblings, 0 replies; 3+ messages in thread
From: Pierre Peiffer @ 2007-04-20 8:46 UTC (permalink / raw)
To: Mel Gorman; +Cc: Andy Whitcroft, LKML
> 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,
--
Pierre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-20 8:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 8:07 [PATCH -mm] fix undefined symbol if CONFIG_PAGE_GROUP_BY_MOBILITY not set Pierre Peiffer
2007-04-20 8:42 ` Mel Gorman
2007-04-20 8:46 ` Pierre Peiffer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).