Commit 91ec7f28 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Andrew Morton

mm/debug: remove call to head_compound_mapcount()

Call folio_entire_mapcount() instead.

Link: https://lkml.kernel.org/r/20230111142915.1001531-13-willy@infradead.orgSigned-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent c7f84b57
...@@ -94,9 +94,9 @@ static void __dump_page(struct page *page) ...@@ -94,9 +94,9 @@ static void __dump_page(struct page *page)
page, page_ref_count(head), mapcount, mapping, page, page_ref_count(head), mapcount, mapping,
page_to_pgoff(page), page_to_pfn(page)); page_to_pgoff(page), page_to_pfn(page));
if (compound) { if (compound) {
pr_warn("head:%p order:%u compound_mapcount:%d nr_pages_mapped:%d pincount:%d\n", pr_warn("head:%p order:%u entire_mapcount:%d nr_pages_mapped:%d pincount:%d\n",
head, compound_order(head), head, compound_order(head),
head_compound_mapcount(head), folio_entire_mapcount(folio),
folio_nr_pages_mapped(folio), folio_nr_pages_mapped(folio),
atomic_read(&folio->_pincount)); atomic_read(&folio->_pincount));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment