* [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP
@ 2012-06-29 20:14 Rabin Vincent
2012-06-29 20:21 ` Tejun Heo
2012-06-29 20:21 ` Andrew Morton
0 siblings, 2 replies; 5+ messages in thread
From: Rabin Vincent @ 2012-06-29 20:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Tejun Heo, linux-kernel, Rabin Vincent
0ee332c14518699 ("memblock: Kill early_node_map[]") wanted to replace
CONFIG_ARCH_POPULATES_NODE_MAP with CONFIG_HAVE_MEMBLOCK_NODE_MAP but
ended up replacing one occurence with a reference to the non-existent
symbol CONFIG_HAVE_MEMBLOCK_NODE.
Signed-off-by: Rabin Vincent <rabin@rab.in>
---
include/linux/mmzone.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 2427706..1d0a9a3 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -773,7 +773,7 @@ extern int movable_zone;
static inline int zone_movable_is_highmem(void)
{
-#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE)
+#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP)
return movable_zone == ZONE_HIGHMEM;
#else
return 0;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP
2012-06-29 20:14 [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP Rabin Vincent
@ 2012-06-29 20:21 ` Tejun Heo
2012-06-29 20:59 ` Rabin Vincent
2012-06-29 20:21 ` Andrew Morton
1 sibling, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2012-06-29 20:21 UTC (permalink / raw)
To: Rabin Vincent; +Cc: Andrew Morton, linux-kernel
On Sat, Jun 30, 2012 at 01:44:37AM +0530, Rabin Vincent wrote:
> 0ee332c14518699 ("memblock: Kill early_node_map[]") wanted to replace
> CONFIG_ARCH_POPULATES_NODE_MAP with CONFIG_HAVE_MEMBLOCK_NODE_MAP but
> ended up replacing one occurence with a reference to the non-existent
> symbol CONFIG_HAVE_MEMBLOCK_NODE.
>
> Signed-off-by: Rabin Vincent <rabin@rab.in>
Please add Cc: stable@vger.kernel.org.
Acked-by: Tejun Heo <tj@kernel.org>
> ---
> include/linux/mmzone.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
> index 2427706..1d0a9a3 100644
> --- a/include/linux/mmzone.h
> +++ b/include/linux/mmzone.h
> @@ -773,7 +773,7 @@ extern int movable_zone;
>
> static inline int zone_movable_is_highmem(void)
> {
> -#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE)
> +#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP)
> return movable_zone == ZONE_HIGHMEM;
This probably has been doing something weird to 32bit machines w/
memory hotplug configured (which probably are extremely rare). It
would be nice if the patch description explained what behavior it
actually fixes. How did you find this? From config check util or did
you actually see something broken?
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP
2012-06-29 20:14 [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP Rabin Vincent
2012-06-29 20:21 ` Tejun Heo
@ 2012-06-29 20:21 ` Andrew Morton
2012-06-29 20:23 ` Tejun Heo
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2012-06-29 20:21 UTC (permalink / raw)
To: Rabin Vincent; +Cc: Tejun Heo, linux-kernel
On Sat, 30 Jun 2012 01:44:37 +0530
Rabin Vincent <rabin@rab.in> wrote:
> 0ee332c14518699 ("memblock: Kill early_node_map[]") wanted to replace
> CONFIG_ARCH_POPULATES_NODE_MAP with CONFIG_HAVE_MEMBLOCK_NODE_MAP but
> ended up replacing one occurence with a reference to the non-existent
> symbol CONFIG_HAVE_MEMBLOCK_NODE.
>
> Signed-off-by: Rabin Vincent <rabin@rab.in>
> ---
> include/linux/mmzone.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
> index 2427706..1d0a9a3 100644
> --- a/include/linux/mmzone.h
> +++ b/include/linux/mmzone.h
> @@ -773,7 +773,7 @@ extern int movable_zone;
>
> static inline int zone_movable_is_highmem(void)
> {
> -#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE)
> +#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP)
> return movable_zone == ZONE_HIGHMEM;
> #else
> return 0;
Huh. I wonder why nobody noticed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP
2012-06-29 20:21 ` Andrew Morton
@ 2012-06-29 20:23 ` Tejun Heo
0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2012-06-29 20:23 UTC (permalink / raw)
To: Andrew Morton; +Cc: Rabin Vincent, linux-kernel
On Fri, Jun 29, 2012 at 01:21:57PM -0700, Andrew Morton wrote:
> > static inline int zone_movable_is_highmem(void)
> > {
> > -#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE)
> > +#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP)
> > return movable_zone == ZONE_HIGHMEM;
> > #else
> > return 0;
>
> Huh. I wonder why nobody noticed.
Well, the combination is 32bit + memory hotplug....
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP
2012-06-29 20:21 ` Tejun Heo
@ 2012-06-29 20:59 ` Rabin Vincent
0 siblings, 0 replies; 5+ messages in thread
From: Rabin Vincent @ 2012-06-29 20:59 UTC (permalink / raw)
To: Tejun Heo; +Cc: Andrew Morton, linux-kernel
On Fri, Jun 29, 2012 at 01:21:39PM -0700, Tejun Heo wrote:
> This probably has been doing something weird to 32bit machines w/
> memory hotplug configured (which probably are extremely rare). It
> would be nice if the patch description explained what behavior it
> actually fixes. How did you find this? From config check util or did
> you actually see something broken?
Neither, I just noticed it while debugging some unrelated problems. The
arch I work on (ARM) doesn't even select this so I don't have any
observed behaviour to describe -- I'll just add a paraphrase of your
statement about who's affected to the patch description.
8<--------------------
>From 38c7a50331efa83e4d07cbd1d6364d62e4448482 Mon Sep 17 00:00:00 2001
From: Rabin Vincent <rabin@rab.in>
Date: Sat, 30 Jun 2012 01:17:45 +0530
Subject: [PATCHv2] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP
0ee332c14518699 ("memblock: Kill early_node_map[]") wanted to replace
CONFIG_ARCH_POPULATES_NODE_MAP with CONFIG_HAVE_MEMBLOCK_NODE_MAP but
ended up replacing one occurence with a reference to the non-existent
symbol CONFIG_HAVE_MEMBLOCK_NODE.
The resulting omission of code would probably have been causing problems
to 32-bit machines with memory hotplug.
Cc: stable@vger.kernel.org
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rabin Vincent <rabin@rab.in>
---
include/linux/mmzone.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 2427706..1d0a9a3 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -773,7 +773,7 @@ extern int movable_zone;
static inline int zone_movable_is_highmem(void)
{
-#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE)
+#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP)
return movable_zone == ZONE_HIGHMEM;
#else
return 0;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-29 20:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-29 20:14 [PATCH] mm: CONFIG_HAVE_MEMBLOCK_NODE -> CONFIG_HAVE_MEMBLOCK_NODE_MAP Rabin Vincent
2012-06-29 20:21 ` Tejun Heo
2012-06-29 20:59 ` Rabin Vincent
2012-06-29 20:21 ` Andrew Morton
2012-06-29 20:23 ` Tejun Heo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.