linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: mel@skynet.ie (Mel Gorman)
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	melgor@ie.ibm.com, haveblue@us.ibm.com,
	linux-mm <linux-mm@kvack.org>
Subject: Re: [PATCH 1/2] Fix migratetype_names[] and make it available
Date: Thu, 25 Oct 2007 11:14:20 +0100	[thread overview]
Message-ID: <20071025101419.GB30732@skynet.ie> (raw)
In-Reply-To: <1193243864.30836.24.camel@dyn9047017100.beaverton.ibm.com>

On (24/10/07 09:37), Badari Pulavarty didst pronounce:
> Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
> ---
>  include/linux/pageblock-flags.h |    1 +
>  mm/vmstat.c                     |    3 ++-
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> Index: linux-2.6.23/include/linux/pageblock-flags.h
> ===================================================================
> --- linux-2.6.23.orig/include/linux/pageblock-flags.h	2007-10-23 13:04:46.000000000 -0700
> +++ linux-2.6.23/include/linux/pageblock-flags.h	2007-10-23 13:10:16.000000000 -0700
> @@ -72,4 +72,5 @@ void set_pageblock_flags_group(struct pa
>  #define set_pageblock_flags(page) \
>  			set_pageblock_flags_group(page, 0, NR_PAGEBLOCK_BITS-1)
>  
> +extern char * const migratetype_names[];
>  #endif	/* PAGEBLOCK_FLAGS_H */
> Index: linux-2.6.23/mm/vmstat.c
> ===================================================================
> --- linux-2.6.23.orig/mm/vmstat.c	2007-10-23 13:05:03.000000000 -0700
> +++ linux-2.6.23/mm/vmstat.c	2007-10-23 13:06:36.000000000 -0700
> @@ -382,11 +382,12 @@ void zone_statistics(struct zonelist *zo
>  
>  #include <linux/seq_file.h>
>  
> -static char * const migratetype_names[MIGRATE_TYPES] = {
> +char * const migratetype_names[MIGRATE_TYPES] = {
>  	"Unmovable",
>  	"Reclaimable",
>  	"Movable",
>  	"Reserve",
> +	"Isolate",
>  };

This also fixes up the output of /proc/pagetypeinfo which currently
prints out "null" for the Isolate string.

>  
>  static void *frag_start(struct seq_file *m, loff_t *pos)
> 
> 

Acked-by: Mel Gorman <mel@csn.ul.ie>

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2007-10-25 10:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24 16:37 [PATCH 1/2] Fix migratetype_names[] and make it available Badari Pulavarty
2007-10-25 10:14 ` Mel Gorman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-10-25 15:55 Badari Pulavarty

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=20071025101419.GB30732@skynet.ie \
    --to=mel@skynet.ie \
    --cc=haveblue@us.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=melgor@ie.ibm.com \
    --cc=pbadari@us.ibm.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;
as well as URLs for NNTP newsgroup(s).