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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C35A6EB64DD for ; Fri, 30 Jun 2023 00:53:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbjF3Axb (ORCPT ); Thu, 29 Jun 2023 20:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjF3AxY (ORCPT ); Thu, 29 Jun 2023 20:53:24 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCF3A2705 for ; Thu, 29 Jun 2023 17:53:22 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QscDp16PTzqVLy; Fri, 30 Jun 2023 08:50:34 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 30 Jun 2023 08:53:19 +0800 Message-ID: <97167eb3-9f22-e7a8-ba48-425f1d043f01@huawei.com> Date: Fri, 30 Jun 2023 08:53:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 1/2] mm: remove arguments of show_mem() Content-Language: en-US To: Matthew Wilcox CC: Andrew Morton , , , , Greg Kroah-Hartman , Michael Ellerman , Nicholas Piggin , Christophe Leroy References: <20230629104357.35455-1-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/29 23:17, Matthew Wilcox wrote: > On Thu, Jun 29, 2023 at 06:43:56PM +0800, Kefeng Wang wrote: >> Directly call __show_mem(0, NULL, MAX_NR_ZONES - 1) in show_mem() >> to remove the arguments of show_mem(). > > Do you mean, "All callers of show_mem() pass 0 and NULL, so we can > remove the two arguments"? Yes, will update with above to make it clear, thanks Matthew. >