linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Fix migratetype_names[] and make it available
@ 2007-10-24 16:37 Badari Pulavarty
  2007-10-25 10:14 ` Mel Gorman
  0 siblings, 1 reply; 3+ messages in thread
From: Badari Pulavarty @ 2007-10-24 16:37 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki, melgor, haveblue; +Cc: linux-mm

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",
 };
 
 static void *frag_start(struct seq_file *m, loff_t *pos)


--
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] Fix migratetype_names[] and make it available
  2007-10-24 16:37 [PATCH 1/2] Fix migratetype_names[] and make it available Badari Pulavarty
@ 2007-10-25 10:14 ` Mel Gorman
  0 siblings, 0 replies; 3+ messages in thread
From: Mel Gorman @ 2007-10-25 10:14 UTC (permalink / raw)
  To: Badari Pulavarty; +Cc: KAMEZAWA Hiroyuki, melgor, haveblue, linux-mm

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] Fix migratetype_names[] and make it available
@ 2007-10-25 15:55 Badari Pulavarty
  0 siblings, 0 replies; 3+ messages in thread
From: Badari Pulavarty @ 2007-10-25 15:55 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki, melgor, haveblue; +Cc: linux-mm

Add "Isolate" to migratetype_names for completeness and make it
available for use outside vmstat.c

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com> 
Acked-by: Mel Gorman <mel@csn.ul.ie>
---
 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:06:08.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 *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",
 };
 
 static void *frag_start(struct seq_file *m, loff_t *pos)


--
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-25 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 16:37 [PATCH 1/2] Fix migratetype_names[] and make it available Badari Pulavarty
2007-10-25 10:14 ` Mel Gorman
  -- strict thread matches above, loose matches on Subject: below --
2007-10-25 15:55 Badari Pulavarty

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).