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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61F6BC4332F for ; Fri, 21 Oct 2022 01:47:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D8D038E0002; Thu, 20 Oct 2022 21:47:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D3C9B8E0001; Thu, 20 Oct 2022 21:47:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C2B978E0002; Thu, 20 Oct 2022 21:47:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B06088E0001 for ; Thu, 20 Oct 2022 21:47:44 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 81DF61A098A for ; Fri, 21 Oct 2022 01:47:44 +0000 (UTC) X-FDA: 80043270048.23.3F42425 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf04.hostedemail.com (Postfix) with ESMTP id BC4554002D for ; Fri, 21 Oct 2022 01:47:43 +0000 (UTC) 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 sin.source.kernel.org (Postfix) with ESMTPS id 3B3BCCE2804; Fri, 21 Oct 2022 01:47:39 +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 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666316864; a=rsa-sha256; cv=none; b=mxqSskNcuqNocKWg+4fVGAyFkLSbudMXC9Ht3DKAyMvI63MesQS1Q9O2+FjLaI52x5QqFP 2QFBryh6Tqj760OaCeZN+3AnsVbwqLs3TKQSktdqYdg+EWBxIKvY+PG+BJd0d7WWKoynv7 YQTQNOAVie/Mwn1eSN7H6OH1mhn1EB4= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=RM+5ExGY; dmarc=none; spf=pass (imf04.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666316864; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QpqUWMvs+2Qm0mhO0PFXaepUkZemNycFsUmHpnfKMbg=; b=bsIykYHtx0oecSmHmHSUnuS+MDrvMruLkVbBDQ+T7rUof/ztXHTxfF5tHaDIst9JOpweOa sqVtYPFzvpPvyhtU2YLmGQmjk0DdvFCfxBf9GOuzTsqLc7iSEvXZ2qEhej7ecWuE6iQBn3 GaWUyRMdkKLm+vlyXwm+cNiuXVPbHUg= X-Stat-Signature: wqnroxebwzcq548rg4xeztakha6do17a X-Rspamd-Queue-Id: BC4554002D X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=RM+5ExGY; dmarc=none; spf=pass (imf04.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam11 X-HE-Tag: 1666316863-816501 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.