Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4094835pxj; Tue, 11 May 2021 20:16:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzisMPpZZc8cghZTgicyCxZImWILpkZoWeCm7NRCkzu1Aw+TFuzcSeXd76s5LtrWaGUYBlq X-Received: by 2002:a05:6602:158a:: with SMTP id e10mr24612097iow.137.1620789412002; Tue, 11 May 2021 20:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620789411; cv=none; d=google.com; s=arc-20160816; b=w+MMSXURGvxXZ+1PMewxM9dLB4jrq/mjqP1hyUYZf39/LiDI0TZS5Xg0SDO8xll4++ NDkNocUYJZy1ODASS/WHPfonZ5wzVqqoERR50yELaXgChKRhFwNQvNCx6gTM12oARDQr AgFmg6rcmNHOQwTydP0/0bcQR/dgBU2pxwi3bixN7vdeTEN7ZQ1OjJ/bZIN7lOkgP3P8 Czss/jWAID2WgKNnfcd26TWd3pCjak7j+7PhTvwYI7SGYKTHdnuFSaAbV0+DZojOt09I u3q208EuiQ77JgeV7RlkJT+1tAw0xNFMtcKcMVGqvzvpOUK1l8NFzIHZlrr6ZEHbkBGG TYAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ikQ41RlJwrGMcA091zj9/uV4xrqM2kq1Y5GRuRy1/n4=; b=mnQ0XYHcIj4RvDQVD27ukx9TD/s7vJBBCUiAvxZ7BMuUBeCl9aQ9mmdeZAObZCYG1U m8Dg1FIG0n+ALqYPV51KiQfmJTH5LjTzjULNGemrjk+4JP5Te0GE9+yGdWpj2ojbGZbz 6MDOxlCkFoTSCQ2sqpQbVTwlSYGY1Qs0ItYQbBhrCjVYZvT7ZO2QFXRtnHFsYv3k8uQJ bG4h0woAzhjrQ+gTSp2e46Cs7tRoVBaAVEcBEGyu6bGIg42u3tCaI2Egu3QbeusnUF/t n6cxmOLTO4/WQv8evJ/4sDUH+pRRiwnOyuuX0BmE1jYa6en1NarFODd0zK2UWe3PEjkw ruWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Z/blpsXJ"; 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 j19si19948561ilq.159.2021.05.11.20.16.39; Tue, 11 May 2021 20:16:51 -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=pass header.i=@infradead.org header.s=casper.20170209 header.b="Z/blpsXJ"; 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 S230002AbhELDP6 (ORCPT + 99 others); Tue, 11 May 2021 23:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbhELDP6 (ORCPT ); Tue, 11 May 2021 23:15:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D679C061574 for ; Tue, 11 May 2021 20:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ikQ41RlJwrGMcA091zj9/uV4xrqM2kq1Y5GRuRy1/n4=; b=Z/blpsXJZSz93O3+ZclMM7GD+m i5SWNkKM3phfo9jPdppT/b2MgSSKrI//Q8iUqs6zwHUifxCzhl0qszp2wWntQVsWLYd9qLcBhVGw6 4KtkG4ZrlF+QC2TxAv1BsjAf93n9zWbQzXugCSj5dBvwUE7lh7wJPbBbY19nMzj9J6DrcX4WKEDSg 5ken6jREJqN5Lz81EWAOr46wwuaGGPPbwmUI3qaKycnfAtwEg//sxXCyy4+KSzXW8JsBmlHyFhOgD 3BLBq9jjErdc4a5aVgZHyDOnrgEqjfaIiPZgK2UqtxKQqn6hPtlh3UAUHOBbwrCu5U8qoK977Otp0 VqjBhjFg==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lgfKH-007tYD-8D; Wed, 12 May 2021 03:14:25 +0000 Date: Wed, 12 May 2021 04:14:21 +0100 From: Matthew Wilcox To: Kefeng Wang Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm/page_alloc: Use dump_page() directly Message-ID: References: <20210512031057.13580-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210512031057.13580-1-wangkefeng.wang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 12, 2021 at 11:10:55AM +0800, Kefeng Wang wrote: > Simplfy use dump_page(). https://lore.kernel.org/linux-mm/20210430145549.2662354-3-willy@infradead.org/ > Signed-off-by: Kefeng Wang > --- > mm/page_alloc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index a2fe714aed93..f23702e7c564 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -658,8 +658,7 @@ static void bad_page(struct page *page, const char *reason) > > pr_alert("BUG: Bad page state in process %s pfn:%05lx\n", > current->comm, page_to_pfn(page)); > - __dump_page(page, reason); > - dump_page_owner(page); > + dump_page(page, reason); > > print_modules(); > dump_stack(); > -- > 2.26.2 >