Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp775810ybg; Wed, 10 Jun 2020 13:25:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfcXnvbiKGmiWKvuknf5y9eTjc2LkvN6fT7cxDbQqqqDb0Vdu//4BYys5BHxuHmOk3ixgA X-Received: by 2002:a17:906:2e83:: with SMTP id o3mr5015574eji.312.1591820735785; Wed, 10 Jun 2020 13:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591820735; cv=none; d=google.com; s=arc-20160816; b=u6zmhHIStCN3M5YsHKs350c45ABma+8UP7YRy8aIV3IGd81XtV+VHmwHttzOlOx06x OjJnDO2nGhGNP9UsZNyhyZKJgrwTLJMJOF1mzfQ7P/tfJbQoUrTZZKyvJxOCHveQkIuo GEmIp5YA5ClWUK/iGjwCVdGIRVL/BCD7NVHdlUmpUgvXHzTaXRTYPep10Cgo5uOZsHQJ KNauirp0G3pQFmf/xMd4GLDpXrcHm26sA2/cRQ6s0QiqI/jQCYkNzR9rYj11Ge1LHXfJ fy7KVZfhyjD2Aw4mUGMaizSMbvBeX/z7lg0kw0k+17MbALQ3XJaNGAiEJ4D8L9bqebzw 3wuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DV4ftIEdQNHLrdsOYQ9aZc9MP7MJ7x8fQ7A37yrCky8=; b=C1dKStwiWybFD243t3yUV+S17TREUQSROgJXtehUtpGnfR0GDqmfBJFT/xan2XT2rF KMBgo9T6O4pOYkaW5Q676Ojx5FPE0S584NwGnV12qCVvL9dxbWnN/HrXcVBpQElc33F3 U8g/y1iDvYSgj/liBC4eck1jVUUmHp7DaHv2GDLEJZCg3n22SWUxAwwhF+Vm0jbabmvi FDy7uzjbV8Iphb0IBRpWuoXXlzKzRDBLhJGxbhQoxXUiVa3SWhIZYl+4jmlLn03FS3CG 78f3eYX8Sg2884kKfxiojt0ywDFlMvq1yxu6U538pndyURQ1X63vMSPRfhcCPXGsOLa9 r6ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dE4Xknev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si403145edr.359.2020.06.10.13.25.12; Wed, 10 Jun 2020 13:25:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dE4Xknev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730733AbgFJUOl (ORCPT + 99 others); Wed, 10 Jun 2020 16:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730606AbgFJUNy (ORCPT ); Wed, 10 Jun 2020 16:13:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76226C03E96F; Wed, 10 Jun 2020 13:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=DV4ftIEdQNHLrdsOYQ9aZc9MP7MJ7x8fQ7A37yrCky8=; b=dE4XknevV4TlrEoLcQIxjzKRp+ BibugNzNqwmBXjnp0W2fFr9fGISsZu07NDmp0kSLEqS83i+m2dUsKWpQw/pFlTb1pxMyCr4uVuIZJ GCk49SOlcF2PJhRvYT6T+KR9MifKirfYnoFeDLeSfElIwmWAxGwzNiqBo9c2O1+oSllVoaVE7wnRs 0uYwfG/lPWO+08wl3MxXZLN0FVYDZUoHAiSw8qY2f/gx9f6r1qTbzXncCQ2Txxjugr8/e3cNjRoRx EKJBRl6912H2mNkP5vOjk6SYY4VqoVShGASvdRKYvS7NJEOu6V885vJx11f5spixepoqqPfv3Frp3 03+2HSxg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj76Z-0003T0-At; Wed, 10 Jun 2020 20:13:47 +0000 From: Matthew Wilcox To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 03/51] mm: Print hashed address of struct page Date: Wed, 10 Jun 2020 13:12:57 -0700 Message-Id: <20200610201345.13273-4-willy@infradead.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200610201345.13273-1-willy@infradead.org> References: <20200610201345.13273-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Matthew Wilcox (Oracle)" 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 e30e35b41d0e..b17909c16a77 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -86,23 +86,23 @@ void __dump_page(struct page *page, const char *reason) 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)) -- 2.26.2