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 8CCB1EB64DC for ; Thu, 29 Jun 2023 15:17:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232200AbjF2PRk (ORCPT ); Thu, 29 Jun 2023 11:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232558AbjF2PR2 (ORCPT ); Thu, 29 Jun 2023 11:17:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B1CB1BC5 for ; Thu, 29 Jun 2023 08:17:26 -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=Br5lmtkM4xEPXhnEaSyMakyTIFN7fYK9NHh54UdMeT0=; b=Nmd6u7CTxl4EWCi8FGYXJ74Qpu bAcilZ1J7uer3chhnj9MN/wr3YlSmQwFKddAHjADFftWFDNj8j6wVmV9lmXVGQ7hbllm/xnZBWkTq D4nBq3DBaEIm3a4D31XhJNZJUtW8UZBSiQbR5kICGO0FzEElP70STZR/WqzWrBv2ahNjKTeLhA0qT TqiOifl12mHfnHDZC/ZVhU+ZeU778mdD+KSAUDczreAq54NcsJd/KO8z2utjgtS3O9Hk7COLoXsNq a3PX8GJ5wdi5mtjI20jqjKQ2ZHbYmh8T5Fa5v7tZ7A1guEVNONDXPygWDhvJwB50dt0TPckJKdwi+ XXJFRrBA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qEtOZ-004xdy-03; Thu, 29 Jun 2023 15:17:19 +0000 Date: Thu, 29 Jun 2023 16:17:18 +0100 From: Matthew Wilcox To: Kefeng Wang Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, Greg Kroah-Hartman , Michael Ellerman , Nicholas Piggin , Christophe Leroy Subject: Re: [PATCH 1/2] mm: remove arguments of show_mem() Message-ID: References: <20230629104357.35455-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230629104357.35455-1-wangkefeng.wang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"?