mm: Make compound_pincount always available
[linux-2.6-block.git] / mm / debug.c
index bc9ac87f0e08d01a9a3bf7748fd3d3f90d6bd013..c4cf4426643075098fa2402eba819d5e97666adb 100644 (file)
@@ -92,16 +92,10 @@ static void __dump_page(struct page *page)
                        page, page_ref_count(head), mapcount, mapping,
                        page_to_pgoff(page), page_to_pfn(page));
        if (compound) {
-               if (hpage_pincount_available(page)) {
-                       pr_warn("head:%p order:%u compound_mapcount:%d compound_pincount:%d\n",
-                                       head, compound_order(head),
-                                       head_compound_mapcount(head),
-                                       head_compound_pincount(head));
-               } else {
-                       pr_warn("head:%p order:%u compound_mapcount:%d\n",
-                                       head, compound_order(head),
-                                       head_compound_mapcount(head));
-               }
+               pr_warn("head:%p order:%u compound_mapcount:%d compound_pincount:%d\n",
+                               head, compound_order(head),
+                               head_compound_mapcount(head),
+                               head_compound_pincount(head));
        }
 
 #ifdef CONFIG_MEMCG