Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1873379rwp; Thu, 13 Jul 2023 18:57:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlE+AbreSEg676vg2n4HS1Y0l7kg/70fMbUoqsd7DH9T6hxidj/Qa72RPl5CKtpdT1LtQefR X-Received: by 2002:a17:906:9e:b0:973:fd02:a41f with SMTP id 30-20020a170906009e00b00973fd02a41fmr3379059ejc.40.1689299875988; Thu, 13 Jul 2023 18:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689299875; cv=none; d=google.com; s=arc-20160816; b=f93Boyl8dsEVfPZFS/gqgJJjJZp3/e+lKXbApdjyk65BBCU3lPyJB/WajfEWxhBAiO 6kO6vRMycmDNcu5VbuTX4TKU6ucpW1JSIgxbT+rMDAn+Hw/heIRULm6FhU9lAevmOzL4 7wRx6rybQwTppm6ReenT/AmRuFvUpXAdwGxjwwefx7fs3W+hSlY1GfGJqWhmhFx4tS5H QzAwMs9+4YoUh9uLx1Y8lf4MgrKwgfAsmVrqmEy8ZOmqtGAqihIRht2ZoS/0kKtXTSi1 YhrVr8kLsOCxQamBdlfwPNJMSJVq00q2whKRymgu254sWRJu3ZOSDsoR6lrJH2c1mObs ufjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=CVCeFUJc3BBwmWUPrgOHr+MVMMuOHf8rcsqau7Z+Rfo=; fh=CCZXqv04FvSang04lkSbeFk5Oe8OarOlCvYVATqQOjw=; b=HYn1iSipeH6GCIN/MyibB2UN+ewClFPeGI2U9aIhbNXt/iCbNoHPFA2KGWwb2J6j84 kogCIAQbpESIcgJ4lCBvrxqSgUBHhc3qoHr4HTR28yjTM1K/jcir75mJtNU4zpuTk6Ul oklOhDZEI1OCIZrpEOnll32DsKXbTZdvVk55k6iMykU0hhP7mz9z0rSR8OUpZmO7DApz de4jr/G2OzDWOWbkRw15RuVTUOfcouz+Mkp0QH1biCca59UxtnYavz1hQNNndImt6R17 EBiREIpY7Sw2lYWpaN1h1miLhGfxAHmp166mme/tNRIzEUOk1byGY/tzZON1xCw8Qd3H 5Skg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a1709063e0200b00991d54db2b2si106646eji.698.2023.07.13.18.57.33; Thu, 13 Jul 2023 18:57:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233058AbjGNBgU (ORCPT + 99 others); Thu, 13 Jul 2023 21:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232845AbjGNBgT (ORCPT ); Thu, 13 Jul 2023 21:36:19 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22EB02D48 for ; Thu, 13 Jul 2023 18:36:18 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R2DYc4m6NzVjHn; Fri, 14 Jul 2023 09:35:00 +0800 (CST) Received: from [10.174.151.185] (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 14 Jul 2023 09:36:15 +0800 Subject: Re: [PATCH] mm: remove some useless comments of node_stat_item To: Matthew Wilcox CC: , , References: <20230713114915.74671-1-linmiaohe@huawei.com> <55c255df-9c7c-744f-e1a1-27602fcb5509@huawei.com> From: Miaohe Lin Message-ID: Date: Fri, 14 Jul 2023 09:36:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/7/13 20:31, Matthew Wilcox wrote: > On Thu, Jul 13, 2023 at 08:18:29PM +0800, Miaohe Lin wrote: >> On 2023/7/13 20:10, Matthew Wilcox wrote: >>> On Thu, Jul 13, 2023 at 07:49:15PM +0800, Miaohe Lin wrote: >>>> Some comments of node_stat_item are not that helpful and even confusing, >>>> so remove them. No functional change intended. >>> >>> No, that's very useful and important. Why does it confuse you? >> >> Thanks for your quick respond. >> >> I just can't figure out what these comments want to tell. Could you help explain these? > > Don't snip the thing you want explained to you! > > NR_INACTIVE_ANON = NR_LRU_BASE, /* must match order of LRU_[IN]ACTIVE */ > - NR_ACTIVE_ANON, /* " " " " " */ > - NR_INACTIVE_FILE, /* " " " " " */ > - NR_ACTIVE_FILE, /* " " " " " */ > - NR_UNEVICTABLE, /* " " " " " */ > + NR_ACTIVE_ANON, > + NR_INACTIVE_FILE, > + NR_ACTIVE_FILE, > + NR_UNEVICTABLE, > > What this is communicating to me is that these five items > (NR_INACTIVE_ANON to NR_UNEVICTABLE) must stay in the same order with > LRU_INACTIVE and LRU_ACTIVE. By removing the ditto-marks from the > subsequent four lines, you've made the comment say that this one line > must stay in the same order as LRU_INACTIVE and LRU_ACTIVE ... which > makes no sense at all. I see. Many thanks for your kind explanation. :)