head is resolved at the beginning of the function. Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> --- mm/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/debug.c b/mm/debug.c index 500f5adce00e..fae0f81ad831 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -84,7 +84,7 @@ static void __dump_page(struct page *page) * page->_mapcount space in struct page is used by sl[aou]b pages to * encode own info. */ - mapcount = PageSlab(compound_head(head)) ? 0 : page_mapcount(page); + mapcount = PageSlab(head) ? 0 : page_mapcount(page); pr_warn("page:%p refcount:%d mapcount:%d mapping:%p index:%#lx pfn:%#lx\n", page, page_ref_count(head), mapcount, mapping, -- 2.32.0