From: Gavin Shan Date: Tue, 29 May 2012 22:06:44 +0000 (-0700) Subject: mm/buddy: dump PG_compound_lock page flag X-Git-Tag: upstream/snapshot3+hdmi~7343^2~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be9cd873e2a706a688e37224d48e135efd8c0d26;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm/buddy: dump PG_compound_lock page flag The array pageflag_names[] does conversion from page flags into their corresponding names so that a meaningful representation of the corresponding page flag can be printed. This mechanism is used while dumping page frames. However, the array missed PG_compound_lock. So the PG_compound_lock page flag would be printed as a digital number instead of a meaningful string. The patch fixes that and prints "compound_lock" for the PG_compound_lock page flag. Signed-off-by: Gavin Shan Acked-by: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 457b4de..72869ea 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5973,6 +5973,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 }, };