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 2E1CFC43219 for ; Fri, 21 Oct 2022 01:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbiJUBrp (ORCPT ); Thu, 20 Oct 2022 21:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiJUBrl (ORCPT ); Thu, 20 Oct 2022 21:47:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2FF22C612 for ; Thu, 20 Oct 2022 18:47:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E43A8B82A0F for ; Fri, 21 Oct 2022 01:47:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F38EC43470; Fri, 21 Oct 2022 01:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1666316857; bh=yo1hIJweKZLTj72/NxaxGf4naDTPS65T5o8RZ3WKDto=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RM+5ExGYW/2f2vhpN6L0I2Nh4MV381nomxc/RpYkXGT034io0Tc5nZdGkpDMD2qS6 Lpgl9fJAdP15zgPWmaBOCC1Vtnq+SKWcoi6CgQW07+mPOlQ+sj1zMgNbFIYW6/d9aI yrYsJ1FZsOum+8x5c7P1CwxiQrfUpgnITOkIhbaw= Date: Thu, 20 Oct 2022 18:47:35 -0700 From: Andrew Morton To: Huang Ying Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Aneesh Kumar K . V" , Alistair Popple , Bharata B Rao , Dan Williams , Dave Hansen , Davidlohr Bueso , Hesham Almatary , Jagdish Gediya , Johannes Weiner , Jonathan Cameron , Michal Hocko , Tim Chen , Wei Xu , Yang Shi Subject: Re: [PATCH] memory tier, sysfs: rename attribute "nodes" to "nodelist" Message-Id: <20221020184735.aaddd0899bad4f0bb796ebde@linux-foundation.org> In-Reply-To: <20221020015122.290097-1-ying.huang@intel.com> References: <20221020015122.290097-1-ying.huang@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Oct 2022 09:51:22 +0800 Huang Ying wrote: > In sysfs, we use attribute name "cpumap" or "cpus" for cpu mask and > "cpulist" or "cpus_list" for cpu list. For example, in my system, > > $ cat /sys/devices/system/node/node0/cpumap > f,ffffffff > $ cat /sys/devices/system/cpu/cpu2/topology/core_cpus > 0,00100004 > $ cat cat /sys/devices/system/node/node0/cpulist > 0-35 > $ cat /sys/devices/system/cpu/cpu2/topology/core_cpus_list > 2,20 > > It looks reasonable to use "nodemap" for node mask and "nodelist" for > node list. So, rename the attribute to follow the naming convention. I'll add Fixes: 9832fb87834e2b ("mm/demotion: expose memory tier details via sysfs") to this to reduce the risk that someone will backport 9832fb87834e2b but will miss this alteration.