Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1910597rwp; Thu, 13 Jul 2023 19:51:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlGj6zw6mAPLazXFNG8ngV1xzCi6fp1g/Okn6qKuHKh5x1MWwk+TzHV6S83B4l7ksj6g9JuS X-Received: by 2002:a17:90a:e391:b0:263:cabe:de5c with SMTP id b17-20020a17090ae39100b00263cabede5cmr2979942pjz.34.1689303097007; Thu, 13 Jul 2023 19:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689303096; cv=none; d=google.com; s=arc-20160816; b=m8APykDIettfOFWK1wVNkvt/yHJPHRYj563gQ6z4Wj7uqMimYSSLfhC0Xy+YWS6Y+D YOKMVAHpMTBDWFwhyCh/yj4K1TkwwRjjUfZ2KsLWGEl8vguE38BNRLfNIHXhIk5dBZXQ QbGOWtmAPVipfQV8fjZVg2rpNTBx2oConGkLUry+t2jBDZPnz/GU/MzgpMvR3y2SJm5k Jm9eaVWGBlbdkEEszLHuQ7+h4NmGWAWE+/L+HUA6FmBLmdI+zvAw4byOGZlGpDKyG6Xr fRoBtlNuF/rpOHr6PGpjOeNIqP8B0iJO4+rlGW8DHbcuNI/BUmgGpUeFJD3reMIWXorx 6MsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=HhENUvt9cr1NDSpJnAJ+IidjfX2H2yfvvT5j6e0VnGw=; fh=Du83hsCddvCzkkpjKFM3EPs02IVHToouyRHfi3UA1R4=; b=l7+DqTV+TcQBexxnwCXkI//MRfm1kyYQh+R6Ja+8Ba2XA0Yj5Ivx28Pz/w095GNkdb e4nryeeSnMNaslU2gAX8GTZMGspRvLqoDr9Cob2WTc2bfyIajkDee72vqNs9YEQ6Y8II pjgZ0Vymyu2t7PHGUESlH8CT6w4qImQ99yZpNB3iEvQw3+oBRT10WgpcHI5nHQADSlcb 1h0Qwl9Mp40XgrJJIHsI95LJjCZDc1B/qeI4hxG1XdiANQNYD/cGz9jyd459nfk+m0yM 6Ij/4iVeYCaedB5MXN9cmYxyUSCybMeP9pDR9tCATMfeLgUgYRM5meGpk7DMSSUiJGiC xvqA== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a631258000000b005579a12f405si6059359pgs.200.2023.07.13.19.51.24; Thu, 13 Jul 2023 19:51:36 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233738AbjGNChz (ORCPT + 99 others); Thu, 13 Jul 2023 22:37:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbjGNChy (ORCPT ); Thu, 13 Jul 2023 22:37:54 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF87F2121 for ; Thu, 13 Jul 2023 19:37:51 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 85EEF1570; Thu, 13 Jul 2023 19:38:33 -0700 (PDT) Received: from [10.163.47.78] (unknown [10.163.47.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 858723F67D; Thu, 13 Jul 2023 19:37:44 -0700 (PDT) Message-ID: <713a99fe-8c43-b416-a574-db235705693d@arm.com> Date: Fri, 14 Jul 2023 08:07:42 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] mm: remove some useless comments of node_stat_item To: Matthew Wilcox , Miaohe Lin Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230713114915.74671-1-linmiaohe@huawei.com> <55c255df-9c7c-744f-e1a1-27602fcb5509@huawei.com> Content-Language: en-US From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 7/13/23 18:01, 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. Just wondering - would it be better to repeat these comments in words for each line than use "ditto-marks" ?