From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6092C433DF for ; Mon, 29 Jun 2020 15:19:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9A1422467B for ; Mon, 29 Jun 2020 15:19:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="h1FNSm8f" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A1422467B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2989B6B0003; Mon, 29 Jun 2020 11:19:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 24C1F6B000A; Mon, 29 Jun 2020 11:19:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13B446B000D; Mon, 29 Jun 2020 11:19:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0248.hostedemail.com [216.40.44.248]) by kanga.kvack.org (Postfix) with ESMTP id ED0A06B0003 for ; Mon, 29 Jun 2020 11:19:33 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 4C9DA181AC9C6 for ; Mon, 29 Jun 2020 15:19:33 +0000 (UTC) X-FDA: 76982608626.13.drain77_380aa9526e70 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 5EE5118140B74 for ; Mon, 29 Jun 2020 15:19:31 +0000 (UTC) X-HE-Tag: drain77_380aa9526e70 X-Filterd-Recvd-Size: 3242 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Mon, 29 Jun 2020 15:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=jccdoH5p1CXWrYEXKsy0cRCTYXAkqZfaKxmC50PElLk=; b=h1FNSm8flXki6KHuAGnoI5eHte PskvQAXxbUhsLX7s7qlBMFWCnuQVB3ti9QqNQXOQOo/Bi1EZBuczAqiaMRSDxnHEBoC0F4d6cSLRU Gj/gKGN0A5hLYkEH/cNk1XE+lkI7fhGhQTzruzDSbQNV97FT7JJKjwWj415AmTqJo9GD9tm7qjmLY 4HszcCaEugKJ0AGpTm1tLxgx/A/NxkLbJyInC1VK1kq8gkFzYGKi/FxRx0Gl1nroCsid9jHbDcTpZ EJXu+WsXWHs218ibIch0wXSEZ0ddG6QUaDcvZRNiJKKIO08d6k2oj23klutfWY977tzdpCd8RftZY gvE1ZIQg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpvZ6-00044e-Tn; Mon, 29 Jun 2020 15:19:24 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org, Andrew Morton Cc: "Matthew Wilcox (Oracle)" , Vlastimil Babka , John Hubbard Subject: [PATCH 3/3] mm: Print hashed address of struct page Date: Mon, 29 Jun 2020 16:19:18 +0100 Message-Id: <20200629151918.15537-4-willy@infradead.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200629151918.15537-1-willy@infradead.org> References: <20200629151918.15537-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 5EE5118140B74 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The actual address of the struct page isn't particularly helpful, while the hashed address helps match with other messages elsewhere. Signed-off-by: Matthew Wilcox (Oracle) --- mm/debug.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/debug.c b/mm/debug.c index 5c58d4509dc9..fcf3a16902b2 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -86,23 +86,23 @@ void __dump_page(struct page *page, const char *reaso= n) =20 if (compound) if (hpage_pincount_available(page)) { - pr_warn("page:%px refcount:%d mapcount:%d mapping:%p " - "index:%#lx head:%px order:%u " + pr_warn("page:%p refcount:%d mapcount:%d mapping:%p " + "index:%#lx head:%p order:%u " "compound_mapcount:%d compound_pincount:%d\n", page, page_ref_count(head), mapcount, mapping, page_to_pgoff(page), head, compound_order(head), compound_mapcount(page), compound_pincount(page)); } else { - pr_warn("page:%px refcount:%d mapcount:%d mapping:%p " - "index:%#lx head:%px order:%u " + pr_warn("page:%p refcount:%d mapcount:%d mapping:%p " + "index:%#lx head:%p order:%u " "compound_mapcount:%d\n", page, page_ref_count(head), mapcount, mapping, page_to_pgoff(page), head, compound_order(head), compound_mapcount(page)); } else - pr_warn("page:%px refcount:%d mapcount:%d mapping:%p index:%#lx\n", + pr_warn("page:%p refcount:%d mapcount:%d mapping:%p index:%#lx\n", page, page_ref_count(page), mapcount, mapping, page_to_pgoff(page)); if (PageKsm(page)) --=20 2.27.0