Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1815982rwb; Thu, 8 Dec 2022 16:00:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4H9hOpQu7XXo0hI5jLr0tCIM7YXQP9LbBf6C3B1h0QVURYWkGb3EmZYv3GTdOzZpcks2+o X-Received: by 2002:a17:902:e5ca:b0:185:441e:90b1 with SMTP id u10-20020a170902e5ca00b00185441e90b1mr5152126plf.23.1670544005913; Thu, 08 Dec 2022 16:00:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670544005; cv=pass; d=google.com; s=arc-20160816; b=uPkTKtwyvzk+uwWojqeWWr5f0TRNrODzPRzVoX2zC3Lf0TQ+KF0my3XXzYvuidjPzl /uTIspIpsNZptDPRukxjkLbo15c3g2ydlbnJTgJrOEfv94gdnbp15vktHft80lunV7ka nfVHBUGD43VdhW6zI3X9HlpmcXYrEIgsDg9gbKQLKQ0F9eiC66KtzQkU6uPrBVNdvV3v r2084IbTUTHyUj/brSSKTydJgha1xkmzC9U0B6RqUA+O7l4bfX1IFlyS2pxwjecVJmdI 9BYRRLYK/HYoGj0gnlJblHpA8EwurtRJfCCFDhEAzahJOPyXyWKVSqDGvWM/o24dZxPn Umdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=bp0i8t3YWgAcZD+38dbWQyGEGviuBkGV0TOK+TFm7zA=; b=GRj5XRaDwCUq9dpY8OUyfguNvlQCKwq+BF+xPazL8MwVNAvhSUOOencYFf0AANgt39 jbiN9vGJ4+ifuW3qCo5935BS+gnxEQY6uvv2R98oSzuTk4dJ4njN+v8qR9MIEQQwcFJh udzp2fcnl4i2TiJYNlW5igltNnWADCxRzq4N0tZrtaJidQLMENkdQdtv72hmgaG1b9q6 P2hlLNQ9C7RyfxMILz/3pq7EgYlAHXvs4nsW2WiYIqVYQg5MlDMgh9Q3D8BJRlceAIFn rFwH2AthJFEmf4a4zQggKDS2DohadFcUUteL8n+UjiiNJV5gmLkvWZCbaVM7Zqu9QsYv q/aQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=heHi3nbM; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zMIfdDY3; 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 jb14-20020a170903258e00b0018922404e22si22730415plb.474.2022.12.08.15.59.56; Thu, 08 Dec 2022 16:00:05 -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-2022-7-12 header.b=heHi3nbM; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zMIfdDY3; 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 S230257AbiLHXn6 (ORCPT + 73 others); Thu, 8 Dec 2022 18:43:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbiLHXnj (ORCPT ); Thu, 8 Dec 2022 18:43:39 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C68128E15 for ; Thu, 8 Dec 2022 15:43:06 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B8MIcBB028547; Thu, 8 Dec 2022 23:42:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2022-7-12; bh=bp0i8t3YWgAcZD+38dbWQyGEGviuBkGV0TOK+TFm7zA=; b=heHi3nbMsgnkCyaSSvnEzVv/uKASlpuk9fMeVhfohh1nrGUFDSXwf+mHELcmLZF420BE 8i9Y5P3XPc7fa9aaPOxhRQ3skGOlUSRnsMLMl5EFBuYTHFJqqNYqV4GR4PproBE5xU5N K3gDJZ7h9VV8nLmFLPlvnIbBJIVzy4tVbP0SvVinUOtc6qQV2nvED14K58wHo7KVSmbe SOys/x8L20wXuPf9JkkN64u5Jip+ZTexT9eDQ+eq2waaPqO8bX63E+AlTOk5rihr9pAl wGh00125ukb2GG0+r19NeeOsiznN5pvQVWH8psHm4nhDwiTLE3YHCu1MgKFkob+LRGLl ZA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mauduv1j0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 08 Dec 2022 23:42:32 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2B8MNbkF019588; Thu, 8 Dec 2022 23:42:31 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3maa8jjcya-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 08 Dec 2022 23:42:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RxwfsceKjXC6ogP4gOk1HQvV8ju5qKMiBfgmF4FwKN7tCNofFkhwurauKcpFkTwe5M/0dcLWmyRgFR4ynPKA9d8q4U/cy0I5lWS16sFAHD2kbWQIZZMog8/1k3K0ebabaK/UZjwKfK4C8StaD8ioUXid/n0WYRj/TiR9udL9WD5U2hK1sKQEJw/cKEkBhGPznSzj64K7M+c37vMcjYSq2zR4n4ndwQeDu2MuQrPmvlyXUyps+HtkuxUWk/NZiwmMofjjJJ3OYlzxg0yqXvXI+RqxtlfQ6hxfyWgw4ngxD2LIPhn5BFy6WfnE/fgDhLkvEBABVLK0qw6Hn2aIA9eQnA== 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=bp0i8t3YWgAcZD+38dbWQyGEGviuBkGV0TOK+TFm7zA=; b=Y1wi1OPwFVJPGS/2Bcat29gR9GRNhZTsuvNCfAvWD1KomfSp/dlXA0pMNe1aJWAOSdf+KOxRBZzb1Elcmn7uz/jnKK+hPT8k6Qh8jk2To8O/w5xZTP4Q1FVh+y8oA2f/Tz9pZJRHbLF+j/NIakMEZs6D+a7hmRiHaCQcFqqQatv/SEsuFGtMz+VdUgRphSNwRd4Z8sghGjUgMf4Jx34+ckaKKoOC5tnXrg5J4d9km955RS8dHxt+XP2GuagSV4tI4uIt69X2WqbfPUCYuxYJNvyDYlpnpOZLXHmwjZamL33IPB8fHYLE3zDjLr87TqX9Jc5Wd3WXJT/Sir9meEldbg== 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=bp0i8t3YWgAcZD+38dbWQyGEGviuBkGV0TOK+TFm7zA=; b=zMIfdDY3j1D+fsudAy50MxvRHkkZvaHJec+4dwEUYvmPzeYkePwW8jvtSt5bPGUSxqbwbg6yrrFBfk+UmJc6rsRb/CKnKvrXMajE3KvGj8Cmzwu3gneNHMrM5rC2cn4jJFI/m4EKv1iFLb1fqtvAt8Fw+K33qU1acKU3fi6uSsE= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by SJ0PR10MB5693.namprd10.prod.outlook.com (2603:10b6:a03:3ec::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Thu, 8 Dec 2022 23:42:27 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::8d67:8c42:d124:3721]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::8d67:8c42:d124:3721%4]) with mapi id 15.20.5880.014; Thu, 8 Dec 2022 23:42:27 +0000 Date: Thu, 8 Dec 2022 15:42:24 -0800 From: Mike Kravetz To: James Houghton Cc: Muchun Song , Peter Xu , David Hildenbrand , David Rientjes , Axel Rasmussen , Mina Almasry , Zach O'Keefe , Manish Mishra , Naoya Horiguchi , "Dr . David Alan Gilbert" , "Matthew Wilcox (Oracle)" , Vlastimil Babka , Baolin Wang , Miaohe Lin , Yang Shi , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 02/47] hugetlb: remove mk_huge_pte; it is unused Message-ID: References: <20221021163703.3218176-1-jthoughton@google.com> <20221021163703.3218176-3-jthoughton@google.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021163703.3218176-3-jthoughton@google.com> X-ClientProxiedBy: MW4PR04CA0169.namprd04.prod.outlook.com (2603:10b6:303:85::24) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4196:EE_|SJ0PR10MB5693:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a05731f-2f32-4fcc-7651-08dad975dd14 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NZDHB97kWD7XqQ75YrU+5F324tEhEkR5zsFCMJ867rOj87SoD1FjDRFU64aHzvojUKxNo1BV13J0JWpZ2eD4xVvdyixF9PMWItOLOBbWijjJOddMazO5HOQrcCA7ouZ8OeOlUzE4EER3yxAP6QHmAqVF7vKa6cy9X/p8rOhltIJ1vHJ+KESQy7tbtV1i2WAmwTW7K0kKsRAmIv8f4B8GOOIJ3ebDLZ1hNSXqKudkfV+gJ7aJPlAs/N6+s5rqIpzXTIP1h8SOW2arwsvjiHSCZNw2OiYEo/YMyH1edC/wJeSRNDCce5kocCGVJJOIvquWTk3uom4O5HO/VFUYo3BDmCEHu0rZ8N2E+CtKEaNbYc0yWTVsGCGp1f5oc0Ld3uTgZ+eoIRNyjgQH1b1Q7iFuxPKOABwK5RiwUu5AoLu7YqvtnoNy+kUw+iRhcZs3UpNJl7ThsX0+f61TfAj38XEWzYThmEQIEYCf9XJGpo09BYX3hxrlrhu3uAshE5gV2eNaGgVyuOLfJ6MMbsb3k024xOPZ60FG2qUVKN5UfX6zDYJ7h2FiNTCxOVwiogPjmomsjHj+bFQA+uwvpXaz+PL1XX5iO+khGl26HKcvIR15c2z6lxhow5hsLPmcJ5QtyOEP3qXQNxtRYiROWk8CBdLQ1x/YGnRm3yzWVDKgEJJJ8XIc+QWZLzn+Ust1UZ632PJp 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:(13230022)(7916004)(39860400002)(396003)(366004)(346002)(136003)(376002)(451199015)(478600001)(6486002)(7416002)(6506007)(9686003)(6512007)(53546011)(4744005)(66556008)(26005)(41300700001)(186003)(83380400001)(4326008)(8676002)(66476007)(44832011)(5660300002)(66946007)(8936002)(6666004)(38100700002)(2906002)(316002)(6916009)(54906003)(33716001)(86362001)(14583001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?s06ABgm+WqmENKB02I/NuCSoGBPxC3ef4padHFVlgJ4L15qKAFDkEHRiQgjj?= =?us-ascii?Q?+dcWzyQ3k7hi3WGw/KCG8OIosKWA+nrig2W0sDpvrmXV/NZ9WpivYD9SZZsf?= =?us-ascii?Q?kbfrvL4vQau2ph9oaSs5qyYVo4iGtTaNQ3lnmalch39vEx1y5xz6OmLwpA2r?= =?us-ascii?Q?ezFdCQ4hb0eXEVpLbxN+EI1oDYw9NIqTpEtfxDoIKqXi7mg/zIAzyYPzaBGv?= =?us-ascii?Q?vC9unvbH5yTLzzc+91z/iwC8+DhTQ046VnNnJDq1J/KKkPqyox+1Ta1r+HTg?= =?us-ascii?Q?OzEQQlk3eytIBuQ+WagR4itzR4CjLjU44NB5FRfxxf05FfD7zuqI3/FDexzv?= =?us-asc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3wktQ2ZbbGFr1UoHw?= =?us-ascii?Q?bsrGLL/xb9k63QyROYcawkOALInuUlrQacCwqxauGbw2VLjCoisYbdoLIl05?= =?us-ascii?Q?rsmNvYcYzYofs0IahbRdSSVPO+eopCceWagLBeR3RtXy3ugzFRXJG+LbCdAE?= =?us-ascii?Q?RrWfHbxzO4HP5BckzDgVB4WkroDXOQ51NXeMje4sCldgoUBoQ+7sBsuA+wFk?= =?us-ascii?Q?pSFb0eXehfjUQvH0D1jWs8qdlfWODC7+HcOtQtf4toQztiXNCVsMGCVd3jfs?= =?us-ascii?Q?13M6SbquYSgi9JkWMRO6I+m1iwh8rYezaD8q4AtiIpPwn39uWUUlAecsXGYc?= =?us-ascii?Q?WvNwk/oT293um5d8MHOfIuO8Dj2wzfIfLx3zEzuJzwZQrBMrxd3qVb7WDvB9?= =?us-ascii?Q?Rg=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a05731f-2f32-4fcc-7651-08dad975dd14 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2022 23:42:27.2196 (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: URq7cKaDyeEOXRrZudtiGsjcg2c1cWqDmitHqUi2R6WPojKviGDCSYEc4B8NyDMbVs5LGdQh5H8wQM2mqTrsOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5693 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-08_12,2022-12-08_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=881 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212080195 X-Proofpoint-ORIG-GUID: nHO8d5uJwwiuxsF1CaG7lnFyVetMWpMr X-Proofpoint-GUID: nHO8d5uJwwiuxsF1CaG7lnFyVetMWpMr X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 10/21/22 16:36, James Houghton wrote: > mk_huge_pte is unused and not necessary. pte_mkhuge is the appropriate > function to call to create a HugeTLB PTE (see > Documentation/mm/arch_pgtable_helpers.rst). > > It is being removed now to avoid complicating the implementation of > HugeTLB high-granularity mapping. > > Signed-off-by: James Houghton > --- > arch/s390/include/asm/hugetlb.h | 5 ----- > include/asm-generic/hugetlb.h | 5 ----- > mm/debug_vm_pgtable.c | 2 +- > mm/hugetlb.c | 7 +++---- > 4 files changed, 4 insertions(+), 15 deletions(-) Thanks! I suspect there is more cleanup of 'hugetlb page table helpers' that could be done. Reviewed-by: Mike Kravetz -- Mike Kravetz