Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp287324rwi; Wed, 19 Oct 2022 21:36:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+O8zqxiywiLuWq3DsRM6Nj4+raS8bxdoQ1J68/7VeCcIvS6orPff/A8xBl8lXtP0HPFpp X-Received: by 2002:a05:6402:3215:b0:45c:97de:b438 with SMTP id g21-20020a056402321500b0045c97deb438mr10371091eda.7.1666240611403; Wed, 19 Oct 2022 21:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666240611; cv=none; d=google.com; s=arc-20160816; b=TZI7i0jKdMWqOXn68qkq+uPxKcNYPdU1k5M3BCNgSAGIlQXJzs631hUVoS5jenxE42 T67GZFKVSHDsuDGVYYi8DJHyNXpSi9NSOy06YcfUtP+iQ2EQDtRRDz2TGWwGBqe7RJLC KLAtmuCH1dqOuSsUqREPtJp1fm/U1iDpNV+Z6elHPaMKQN8esC5PMvFQOQcJ/9uSMW/F G9ElTUwbCi9R3Dg04dqeM6RB3WyK0pHDNd4hfFjTaGSdQU6FM9Pbzw+NXTtT7XFOl0ve rzJc3J2n9hT48sUItF/gzufUK8qUeyJ/xkCV15RCGpwAAGyM/N15wyYgtjQHxvfFXZ31 Gpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=vW4o+CsUymmKrBV1g3y7S7jSyvhovk+xCA/YYHh7cjI=; b=NyAgs6Xh2i5cPQm2I2vtsA9NsbLrT7yCfBrOiD2KEwSwuwPrQP5aP0ARVmVsEyYsRq oH6IQ6v3jXoGREbM7pvNelApZKsefLzbesx1UYJA1/PjMyMLxla8q+DVXDgQEdaJG0mP 20nEPaHljAOvZJt+42nzJCCv/rwD8uUAb0OJ2IKstzoi+foZ26Jk3M+ixDizQ5kPrIqw nhkl8eILH72l/ee4cKhoH8XHopkiWzXw7u+SwAs6nw36HeX74BXwmgdatvnkEKppDzFT AN8QrdIQRXikN4cP0W43jythsizMz77kUsPkRmdmcLZvQ8t9mryAJg63eMkej50CGeW/ 32Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AJnLrHyp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp1-20020a1709073e0100b0077b2e822b8fsi14669090ejc.76.2022.10.19.21.36.26; Wed, 19 Oct 2022 21:36:51 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AJnLrHyp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbiJTD6l (ORCPT + 99 others); Wed, 19 Oct 2022 23:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbiJTD6h (ORCPT ); Wed, 19 Oct 2022 23:58:37 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B6341A0C37 for ; Wed, 19 Oct 2022 20:58:34 -0700 (PDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29K3EQv3008940; Thu, 20 Oct 2022 03:58:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type; s=pp1; bh=vW4o+CsUymmKrBV1g3y7S7jSyvhovk+xCA/YYHh7cjI=; b=AJnLrHyp/rWfV9soh1OVv3Kz3ky+BMRXDgZuVZfwOgljkZnAtQDJdyl40HlqceRsd8Qv X9SaPKoVvfy+RXqIskJ9wOQOXfAF5QL96y8doh/9b8nV1H79KGEbef82OQ4QuTJKiay/ c8ZVsPM5eCNhPcyOwySJPMrRRNDm4fB431t/kodWO3xay38XUZnG8mnlOliB4yOaqV0c KOC8cpwPARClwqfngNRuK7SKhGr5rLjI9zuf0c2xtVt8f0Tsty2QUtBUWbfN4q9B93F1 8kmc3H29vkNe3V3dVeEfsY/NHY28SG5gesvf9ZMpQFKim+ookQ04uIvaAth//sAVN3kt ig== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3katdyxsbp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 03:58:05 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29K3lqbT028300; Thu, 20 Oct 2022 03:58:04 GMT Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3katdyxsb3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 03:58:04 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 29K3pRCi017277; Thu, 20 Oct 2022 03:58:03 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma04dal.us.ibm.com with ESMTP id 3k7mgbgysx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 03:58:03 +0000 Received: from smtpav01.dal12v.mail.ibm.com ([9.208.128.133]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 29K3w0dD59113800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Oct 2022 03:58:00 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8469858062; Thu, 20 Oct 2022 03:58:01 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DDD9F58057; Thu, 20 Oct 2022 03:57:55 +0000 (GMT) Received: from skywalker.linux.ibm.com (unknown [9.43.20.46]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 20 Oct 2022 03:57:55 +0000 (GMT) X-Mailer: emacs 29.0.50 (via feedmail 11-beta-1 I) From: "Aneesh Kumar K.V" To: Huang Ying , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Andrew Morton , Huang Ying , 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" In-Reply-To: <20221020015122.290097-1-ying.huang@intel.com> References: <20221020015122.290097-1-ying.huang@intel.com> Date: Thu, 20 Oct 2022 09:27:52 +0530 Message-ID: <874jvzdu4f.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: AVbrlLe7IWdOWc_CwrKsVXoo5XGxrfJl X-Proofpoint-GUID: Y-Duv5DpQLjM87HM65AkQcGmzn_er7MV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-19_13,2022-10-19_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 spamscore=0 phishscore=0 priorityscore=1501 clxscore=1011 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210200018 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Huang Ying writes: > 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. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: "Huang, Ying" > Cc: Aneesh Kumar K.V > Cc: Alistair Popple > Cc: Bharata B Rao > Cc: Dan Williams > Cc: Dave Hansen > Cc: Davidlohr Bueso > Cc: Hesham Almatary > Cc: Jagdish Gediya > Cc: Johannes Weiner > Cc: Jonathan Cameron > Cc: Michal Hocko > Cc: Tim Chen > Cc: Wei Xu > Cc: Yang Shi > --- > Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers | 4 ++-- > mm/memory-tiers.c | 8 ++++---- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers b/Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers > index 45985e411f13..721a05b90109 100644 > --- a/Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers > +++ b/Documentation/ABI/testing/sysfs-kernel-mm-memory-tiers > @@ -10,7 +10,7 @@ Description: A collection of all the memory tiers allocated. > > > What: /sys/devices/virtual/memory_tiering/memory_tierN/ > - /sys/devices/virtual/memory_tiering/memory_tierN/nodes > + /sys/devices/virtual/memory_tiering/memory_tierN/nodelist > Date: August 2022 > Contact: Linux memory management mailing list > Description: Directory with details of a specific memory tier > @@ -21,5 +21,5 @@ Description: Directory with details of a specific memory tier > A smaller value of N implies a higher (faster) memory tier in the > hierarchy. > > - nodes: NUMA nodes that are part of this memory tier. > + nodelist: NUMA nodes that are part of this memory tier. > > diff --git a/mm/memory-tiers.c b/mm/memory-tiers.c > index f116b7b6333e..fa8c9d07f9ce 100644 > --- a/mm/memory-tiers.c > +++ b/mm/memory-tiers.c > @@ -131,8 +131,8 @@ static void memory_tier_device_release(struct device *dev) > kfree(tier); > } > > -static ssize_t nodes_show(struct device *dev, > - struct device_attribute *attr, char *buf) > +static ssize_t nodelist_show(struct device *dev, > + struct device_attribute *attr, char *buf) > { > int ret; > nodemask_t nmask; > @@ -143,10 +143,10 @@ static ssize_t nodes_show(struct device *dev, > mutex_unlock(&memory_tier_lock); > return ret; > } > -static DEVICE_ATTR_RO(nodes); > +static DEVICE_ATTR_RO(nodelist); > > static struct attribute *memtier_dev_attrs[] = { > - &dev_attr_nodes.attr, > + &dev_attr_nodelist.attr, > NULL > }; > > -- > 2.35.1