Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp149729pxm; Tue, 22 Feb 2022 19:16:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzoC36xilvz/5onitGhBty2M/rHkSgR8BkokWYX2YV8bykfivur4KCPLQVfl90tHsqf2UC X-Received: by 2002:a05:6a00:2341:b0:4e1:5aa4:9aff with SMTP id j1-20020a056a00234100b004e15aa49affmr27931964pfj.8.1645586174686; Tue, 22 Feb 2022 19:16:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645586174; cv=pass; d=google.com; s=arc-20160816; b=J5KEKPE/JQhKl86VWZHzSP+iCkKhYSjf8qTXdNXujce/ER0ZN717CcvjEOuHSWBo0V jKibNE+zA897vNKibNNCXG1QKp8x3AdtQRUJ/4mRcwrj1SK6SvqlyYsBWkPJNm99MlND n+bT6mudMF3YQQHJdL1tBP23S8xN45PK4cG4tUU1JdsbVqvIbSeINYK8l5fjhtAHJUSO oMZf1o4cHceR3B+EG0ZnxZB603MhBxjRM4oh0vfp2mz7JZ7cmlc8300W8ndOyCxPQTTo gGjH4cbp/NZ4jhooCAzcIwVCiPZyaztdkj+9DS+Kr+he3aOGpOhmGPT9opuncELqA/LI 21hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=FOLYmfgDEXGa7tBlRB3sd81BH4RNjJH+7+EMlU5flS4=; b=QwpSvitM+sUpVHzN3ZK1F3rHXE/1lnvze8hFg27/6AFkaZnBKBiJr1r4zPDbQysNCX v2MgG1oBZLU59cikEbnKXP73+2dv8A0JRp0Lk2iMX59hAKp9OkyraloMGBhtP0jmv+DX d+4JxYJPSlrBYbRdwXjEIMUYqrkik1Uwsq8tHsUuq0iVdmFOKBVMpLMDAfeaf37bmaU7 JKyKoE4bRyrbBqJNBllJkuSdioH5wZ3yO6jTNJmx1iNhYMghsk0lFR4MqPQgnaBilfmO pGTRsEliAoUNUjsoEsPCGuULomZtsSzeRVfz2LIJSmD6HtHHFB6cveo1GlkK51Sogbf0 Qgfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=zyCChgLd; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=YcEJqZmR; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x75si2051464pgx.398.2022.02.22.19.15.59; Tue, 22 Feb 2022 19:16:14 -0800 (PST) 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=@oracle.com header.s=corp-2021-07-09 header.b=zyCChgLd; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=YcEJqZmR; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234911AbiBWA1y (ORCPT + 99 others); Tue, 22 Feb 2022 19:27:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234498AbiBWA1v (ORCPT ); Tue, 22 Feb 2022 19:27:51 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 415E653E2D for ; Tue, 22 Feb 2022 16:27:24 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21MMo6XF018680; Wed, 23 Feb 2022 00:27:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=FOLYmfgDEXGa7tBlRB3sd81BH4RNjJH+7+EMlU5flS4=; b=zyCChgLdEJxjIFdfNXcOrRVWZ5FXI7j1vm7xp81E/D8fH46w3mm3JQdP5WYNcVL57t3z rmA+WvTeqJgK9C7DJsxvKq3CmFmAtKuVPpZxU5EE9d84TRfBgzEmWQHZEkU4U0v/aNXp eWAnmvRhDc/jA2Yu95caGxD45MTAB8xJCVJ+L9UCja5pHi6wgbJ+JLB0ePynBP39H3kx JJ/a1Joy78A+mfKqs1Z483oLzzOIEp0+tfBLb++RBpTHGFP5Kgpzv8Lxtb3HNsYfcs9I EyGmmkKTdsSbLF2w1imy4wi3jvyKbiw2HQtB1/hCf9gj0y8pOZiFSBx69q4X9NFZ2d0w 7w== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3ectsx2qh4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Feb 2022 00:27:17 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21N0LZkW025727; Wed, 23 Feb 2022 00:27:16 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2170.outbound.protection.outlook.com [104.47.57.170]) by userp3030.oracle.com with ESMTP id 3eannv3c0b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Feb 2022 00:27:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UiEfO84xNQGKiWKCg7M1/GY0F8KZg7+DJzS6uynfZFa6zqY7lmdB0/4BJ8FAt7Aa6fdr5a+Tc/tbY+k6NXHQ5i+FqIHRaHcHUgZ8nEC48JLTm6ChATNGh9hmKp0pnc6SR4vzTCi5R2AmlywF3Et1sKiaMvetE/VfUWaYuOXXvcX95XXPpDV9fcxRdesolT7VLGU2E3/BkAc+DE/zwrvvv9lAqP7tHDtnMuSe9lQkCiPDQ3RNoLoaPBm1vLi6np6d3+UCK170azmIBgbfUHzzh0Q6QRucLjq+gXPOfNYUg924csfaQhUoScqFA10lnnkMhBQ6Z069iumLL9PTyux4qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FOLYmfgDEXGa7tBlRB3sd81BH4RNjJH+7+EMlU5flS4=; b=DWHdI0pj13MBxvSIGVOBaP0+yeQKV+C0oQZ04pl6XyBQVJJfkQg0bFucBMHe/PpwXajADZClKcDSwyOCp70wZjDKvBKRkhq3Z6h6RJc9jX62IxKbjqx7KblVVgUPtBJ9aTO36TdX4HrBD49uQCgAptY/Y7P5CC3S7NGAwOJV9qJFTOdhc12AUVIbvzOwurF6AreOvuXVlfy3qxxBW7Pqub0hUn3h1WoFLz7Rsm0DCy4mBVx0utB5k+ZGnnlkbf0OhjlUwi9SLMc2YbVm0L2Lld5rtwBheNLVS9ynF4hqcCk/6TLFxNJuRba7tOsxjVHzsI512z9XnPEwF4B1I6HEQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FOLYmfgDEXGa7tBlRB3sd81BH4RNjJH+7+EMlU5flS4=; b=YcEJqZmRMMs4vVDe47wvDblyJLSydnriio/GY45S4hL7MRmp2rpj1EprIQdcevDd2p8z0fZRqgW3RrRl9vUs8YinN+YNslP8D1tnI+aN3zZk7IiAlfI5Gv8CI1INDGXQq0sGPwIty26xequG8CZgpwWEMu1k6Rc9pZt05mh+WFw= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by BN6PR1001MB2372.namprd10.prod.outlook.com (2603:10b6:405:2b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.27; Wed, 23 Feb 2022 00:27:15 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::11f6:860e:575a:e6f1]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::11f6:860e:575a:e6f1%6]) with mapi id 15.20.5017.022; Wed, 23 Feb 2022 00:27:14 +0000 Message-ID: <6383a6b9-5e03-25e3-922e-97240d7b59ca@oracle.com> Date: Tue, 22 Feb 2022 16:27:12 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] mm/hugetlb: use helper macro __ATTR_RW Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220222112731.33479-1-linmiaohe@huawei.com> From: Mike Kravetz In-Reply-To: <20220222112731.33479-1-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW2PR2101CA0021.namprd21.prod.outlook.com (2603:10b6:302:1::34) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3cc9e3e-9877-45c1-ef45-08d9f6633d4d X-MS-TrafficTypeDiagnostic: BN6PR1001MB2372:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AYk6ZZtzrqKyGgQavMKtYZ6LgTkv8ftQIjMEsES5eHstck3dPE277YpAObUc81PuLdhlyy4EZCS6JPKOG0y7no4G3speDbZXZgVwzBNWFhciIkqyt8vPGkfT8kAYMUOUy6QahMpipi30641YRgyLl4XmWJW135MiHlQKdY1N3tTm2xwR2G0lfmvX18HRiLGeMLBb0w3LYMi3QtN9apfr9lhri5uSdTXMI0s1bp/9CStdjOOGkpn5oNSxZZeVszZKGeHOQlQcFiaNNzMoLgQ+c1xz8MQXBRZWkVH2EJ3XfSAP/RGKzsXwo1O7UfUBQmnBbJlKYKRmAPVMNtItIyh7TJOEclcdIpRj2N7lIRXoLjy1dV/bgOWz7OQWp5ZyGGl06I0Jx1ZD54QzPSpMI6TxpcE3p5iwlhApZLfQflhRQCyOKufXaCutEnHFVAzDoU3sxQt3iBxlUpyE3pfHI00P5aJNTnr/tog0kdyxIPU96NsZsxvYYqhhBSQJelV/cn8CZ08EsO8tlB/fX+x83a4qk3OWVZO/XYIJiu6z8du6vfO1Z7OudfvKNWeh1HrfvxwiMddfGf+1HGlrwB/p3SYuLzxc8aMJ8m6JK5z9CBqmtFGAzoLgWQtAZ1pkrtQjrQPisnOcIBEvCotYVqDNbgO+IUqnH5wyyqBL5e58WTmOD5fzotGQ3flVNnWjCw/r9DYKJnhkaJQ4//79FUysLvcknRF6P4FfzkwdwHW3gi1vpEJgNL84fQ1+5PIug8McV9Qm5YPs4YH5E4ENUi5L/umSdA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4196.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(316002)(8936002)(508600001)(31696002)(86362001)(83380400001)(31686004)(4326008)(5660300002)(6486002)(36756003)(44832011)(186003)(26005)(38350700002)(2616005)(6512007)(6506007)(2906002)(66946007)(66556008)(66476007)(8676002)(53546011)(38100700002)(52116002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QjFHQXZNcUYrNnVzc1Y4RTNuUUhheWs1RTE2eHVjeVN5VU9Oek81VEdzLytj?= =?utf-8?B?UkQ0c3I1d3kyYUpvMU5XWGhqKzhtMkg3SnhtdWJxQUc5Y1IrNENjaGwxbWx4?= =?utf-8?B?dVFSVlJtcVNqMXRpRkQ1Umd1S3RLZHFjV0FMUmlCQ08vRC8yaWZ1V3FneFor?= =?utf-8?B?Z01TZEhsTGpsSHY3UGtlUE1rbE14YkR0dDBObGxucW1Tanp3USszc3NxRm5K?= =?utf-8?B?OW1JNjFvME1JU0RaR3JFTmdpNUVWRFBqQkJJb3Z6ZnJ4Y3NhdjJ3SVJ6ZjBu?= =?utf-8?B?Y0ZlOWMrUjBIb1BoR2Uvc1ZyRHEvSUhERElwNGdPWHdKd1RIZTc1VFR2VERT?= =?utf-8?B?K051Kzl4Q0FBYlZHMGYwMEU0OVprajRiK3k1dW5ZNS9QNHFPY2tENXlCUmYz?= =?utf-8?B?amFDeG9jZ2ZuaU5nRjQ5TGRBcVhjYWRnTzhUdS91TTJ3TzRGYmJXVUFqTmtK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-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2022 00:27:14.8472 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: M7nUeNBqb9HDMAFJgzz/8lH2qWNpvzEM87+AUx0wHeUABihYPM4QzmjMYDSyx1B5BAuzB/0XJDT6Rpi+EUxbcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1001MB2372 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10266 signatures=677939 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202230000 X-Proofpoint-ORIG-GUID: dqjgoNaIoV_C7ncI2ClS7pUOpY2R1uAa X-Proofpoint-GUID: dqjgoNaIoV_C7ncI2ClS7pUOpY2R1uAa X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 2/22/22 03:27, Miaohe Lin wrote: > Use helper macro __ATTR_RW to define HSTATE_ATTR to make code more > clear. Minor readability improvement. > > Signed-off-by: Miaohe Lin > --- > mm/hugetlb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Thanks! I should have noticed and changed that when adding HSTATE_ATTR_WO. Reviewed-by: Mike Kravetz -- Mike Kravetz > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 1f0cca036f7f..c0405f3c8413 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -3498,8 +3498,7 @@ static int demote_pool_huge_page(struct hstate *h, nodemask_t *nodes_allowed) > static struct kobj_attribute _name##_attr = __ATTR_WO(_name) > > #define HSTATE_ATTR(_name) \ > - static struct kobj_attribute _name##_attr = \ > - __ATTR(_name, 0644, _name##_show, _name##_store) > + static struct kobj_attribute _name##_attr = __ATTR_RW(_name) > > static struct kobject *hugepages_kobj; > static struct kobject *hstate_kobjs[HUGE_MAX_HSTATE];