aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-05-29 18:06:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-29 19:22:23 -0400
commitbe9cd873e2a706a688e37224d48e135efd8c0d26 (patch)
tree7e962e6da0b1cd010ded0b1901394c78e85863e2 /mm/page_alloc.c
parent782182e53a6cdb3e3d04cc40516e173046942a32 (diff)
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 <shangw@linux.vnet.ibm.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 457b4de122f..72869ea5c51 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5973,6 +5973,9 @@ static struct trace_print_flags pageflag_names[] = {
5973#ifdef CONFIG_MEMORY_FAILURE 5973#ifdef CONFIG_MEMORY_FAILURE
5974 {1UL << PG_hwpoison, "hwpoison" }, 5974 {1UL << PG_hwpoison, "hwpoison" },
5975#endif 5975#endif
5976#ifdef CONFIG_TRANSPARENT_HUGEPAGE
5977 {1UL << PG_compound_lock, "compound_lock" },
5978#endif
5976 {-1UL, NULL }, 5979 {-1UL, NULL },
5977}; 5980};
5978 5981