linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: "Volodymyr G. Lukiianyk" <volodymyrgl@gmail.com>
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] set correct numa_zonelist_order string when configured on the kernel command line
Date: Wed, 15 Dec 2010 09:03:39 +0900	[thread overview]
Message-ID: <20101215090339.167a7eab.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <4D07467D.7080809@gmail.com>

On Tue, 14 Dec 2010 12:27:09 +0200
"Volodymyr G. Lukiianyk" <volodymyrgl@gmail.com> wrote:

> When numa_zonelist_order parameter is set to "node" or "zone" on the command line
> it's still showing as "default" in sysctl. That's because early_param parsing
> function changes only user_zonelist_order variable. Fix this by copying
> user-provided string to numa_zonelist_order if it was successfully parsed.
> 
> Signed-off-by: Volodymyr G Lukiianyk <volodymyrgl@gmail.com>
> 

Thank you.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>


> ---
> 
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index ff7e158..ddb81af 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -2585,9 +2585,16 @@ static int __parse_numa_zonelist_order(char *s)
> 
>  static __init int setup_numa_zonelist_order(char *s)
>  {
> -	if (s)
> -		return __parse_numa_zonelist_order(s);
> -	return 0;
> +	int ret;
> +
> +	if (!s)
> +		return 0;
> +
> +	ret = __parse_numa_zonelist_order(s);
> +	if (ret == 0)
> +		strlcpy(numa_zonelist_order, s, NUMA_ZONELIST_ORDER_LEN);
> +
> +	return ret;
>  }
>  early_param("numa_zonelist_order", setup_numa_zonelist_order);
> 
> 
> --
> 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/ .
> Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
> 

--
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/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2010-12-15  0:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-14 10:27 Volodymyr G. Lukiianyk
2010-12-15  0:03 ` KAMEZAWA Hiroyuki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101215090339.167a7eab.kamezawa.hiroyu@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=volodymyrgl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox