linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/buddy: dump PG_compound_lock page flag
@ 2012-05-14 10:26 Gavin Shan
  2012-05-14 20:51 ` Johannes Weiner
  0 siblings, 1 reply; 4+ messages in thread
From: Gavin Shan @ 2012-05-14 10:26 UTC (permalink / raw)
  To: linux-mm; +Cc: hannes, akpm, Gavin Shan

The array pageflag_names[] is doing the conversion from page flag
into the corresponding names so that the meaingful string again
the corresponding page flag can be printed. The mechniasm is used
while dumping the specified page frame. However, the array missed
PG_compound_lock. So PG_compound_lock page flag would be printed
as ditigal number instead of meaningful string.

The patch fixes that and print "compound_lock" for PG_compound_lock
page flag.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
---
 mm/page_alloc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 1277632..d39f253 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5652,6 +5652,9 @@ static struct trace_print_flags pageflag_names[] = {
 #ifdef CONFIG_MEMORY_FAILURE
 	{1UL << PG_hwpoison,		"hwpoison"	},
 #endif
+#ifdef CONFIG_TRANSPARENT_HUGEPAGE
+	{1UL << PG_compound_lock,	"compound_lock"	},
+#endif
 	{-1UL,				NULL		},
 };
 
-- 
1.7.5.4

--
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 internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2012-05-15 22:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14 10:26 [PATCH] mm/buddy: dump PG_compound_lock page flag Gavin Shan
2012-05-14 20:51 ` Johannes Weiner
2012-05-15  9:21   ` Gavin Shan
2012-05-15 22:18   ` Andrew Morton

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