Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1832461lqg; Mon, 4 Mar 2024 05:26:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZpHbs0k5BBiOWitdGJP3Qkc/+CSURglwVVEZ6k1BauAmiSoXutIib8Ycb7ulue6F23uOWiR+BpSIqXLnSrb1GuSgARzwRjPXH2/mebg== X-Google-Smtp-Source: AGHT+IHF36opk7+5ZKimB01ssoL2i+cmr0SRpfxZ8jvsAuDXoQjv5oWfdreYv+CI1MbbikkTp8TP X-Received: by 2002:a05:6a20:1581:b0:1a1:2fb7:ef29 with SMTP id h1-20020a056a20158100b001a12fb7ef29mr11083454pzj.20.1709558793875; Mon, 04 Mar 2024 05:26:33 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x34-20020a056a0018a200b006e59ec32befsi8006911pfh.206.2024.03.04.05.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=m2vJX1SY; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-90617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 784FBB26600 for ; Mon, 4 Mar 2024 13:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36F4A3D548; Mon, 4 Mar 2024 13:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="m2vJX1SY" Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2048.outbound.protection.outlook.com [40.107.243.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FAFE3C6BF for ; Mon, 4 Mar 2024 13:09:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.48 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709557770; cv=fail; b=WML4LrvXIlCK3he6HGXAaqXUsT53W5FqSwX7Cy6olTwnPkF5FEfXRsQZGwlHdarpV5w7PZgxuXHwvVTvLwtm2/FK7BMRfV1K/1bvA4jfmqjGj3b1VjDTHqZTp3L920IzyDuHHXDBmLJC84QV1zmLKGpcCpwD7T+FkKejJA6KhrA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709557770; c=relaxed/simple; bh=bupcvXJosInhi/iqepC9DvuBsGdQOx5a4VjQaCd9FaY=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=UPBkqUmmZu+rs8aboR+KJCyxIFJVGtRDItsi7AwS4EsjRmqcvjxXJXRBLsWAOrvnp01B0ma2Q254yq7TTUL9JVRCzbzBJffx0Ru8cokTwFGR0F6b7s20Bwpnf7XSgeSltcsYfFDv1VuUi7UWhAGkLFEPcL4tJhyd+4EQFEkj8/4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=m2vJX1SY; arc=fail smtp.client-ip=40.107.243.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=couN9LnNMXDWBEo0KrBFluMcoxvAoS7U8z1P32RBWOaJnFlco/hfEOALmG9vrCI/vjPyk4NfKPK5+2KU56VucjSw2SZi1AG0ZPSTPBX72XEI6Y4zMQR2KNMyj+wNhNx8tY+pEadQrm84x9G3G3b5JxKwplMQKjdzGWpIq7cfzBSbvFAiTEL2asM2PfOT5LzgWabfrOcykptwswh/KWAxQr1lkMYui6B/kCdNdcgizYksP/RgprUIrjs1l9AsSS6X9FgR/upUUfFT5dB2mFEmiL4uNjeUEms+LG4LDPF8ZL5u+iRh4rheCWXE9NmtDleojKBHCM78/7I4kHu5EeQKVA== 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=qBFkcpAQr1IxvB7NZh85JyiRF+WsniORMHIIpbJyrvs=; b=mx7HYUKMp7a5DC1sH0TddvH6EUjSeozRpQRkzOWc6PmWvx9s9W+MzM6UyEESIocB4uWUblDwSkApOvFw1+t4mUtn3N8fE0elBmdb9Gk6+BBlSxPEuCS2Meq5HFAx8PxiAC4c+RSdqItwc571AtRVhySCXHvniURt4z1+999xAL2/naSBH8VrhPV5dCjrsfmsIEKr50BCAimwjueCwjajS5Az5b8q2PwBThODTqvReiBEiaMlmcVzHlza0FLrUareDFl3rBHt9R6WNSPOaLrsQY4fTqPy332XtU/QQtegZbOullNXfqC4ZbN5dZm9c8LWo7iBZai3Qe4cTfCvMzjvew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qBFkcpAQr1IxvB7NZh85JyiRF+WsniORMHIIpbJyrvs=; b=m2vJX1SYKuXUq52JyJaJw8egIyJkxrGU93VCtsn8ldoCuSTxe8Hwwh0Gl8zDqFPZy3KzWrC0r2nw9w6L2JlQ+/Qorqj7Xqy71qs5FJHNsm2raaESl8q8V6OW/H3q30DjrOtMxkZMlxIOExOZilvKiG5l+kXgOq0gXZ3pi+JI29Lf3LuMeECfHJKKoXlXKXdL+vAgkGmR/bNVp2ijUf0ibiH4cHzPdhnHRXNvIUHxQo/g75sx0fqWxNlBcBmrDFFSvEQWdMzrxBX2jGHEim1rYcSCQY/TiV81HkeGb4DzL4Vk+Povo+OqQ/zufZiiu+DjRcwyP8Xybc/xt7hZqfxpXA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB3849.namprd12.prod.outlook.com (2603:10b6:5:1c7::26) by DM4PR12MB6397.namprd12.prod.outlook.com (2603:10b6:8:b4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Mon, 4 Mar 2024 13:09:25 +0000 Received: from DM6PR12MB3849.namprd12.prod.outlook.com ([fe80::c33c:18db:c570:33b3]) by DM6PR12MB3849.namprd12.prod.outlook.com ([fe80::c33c:18db:c570:33b3%5]) with mapi id 15.20.7339.035; Mon, 4 Mar 2024 13:09:25 +0000 Date: Mon, 4 Mar 2024 09:09:23 -0400 From: Jason Gunthorpe To: peterx@redhat.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Yang Shi , "Kirill A . Shutemov" , Muchun Song , Andrew Morton , x86@kernel.org Subject: Re: [PATCH v2 5/7] mm/treewide: Replace pmd_large() with pmd_leaf() Message-ID: <20240304130923.GS9179@nvidia.com> References: <20240229084258.599774-1-peterx@redhat.com> <20240229084258.599774-6-peterx@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240229084258.599774-6-peterx@redhat.com> X-ClientProxiedBy: SA1P222CA0151.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c3::21) To DM6PR12MB3849.namprd12.prod.outlook.com (2603:10b6:5:1c7::26) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB3849:EE_|DM4PR12MB6397:EE_ X-MS-Office365-Filtering-Correlation-Id: 9cd8965f-9b39-4479-ca41-08dc3c4c50e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r5+G+vRjjMuAp3vKHNXPnYOWs7WTK0dFjE0TFbzvmvfeWQe5fhOOTl8SOuSvqt9sHvtc3J6XRFziI2lB41ehnPcBOwgN9CTEa/suCJ4tzu8p9IUJUwSv3o3wNH1Q1YzYNsqJ0Ls2ibWpUMJZ4nYGb7uP+kqSjnNHrC4Hg4Vij0zqMjjyUcNAwEdHl6s+HfaCiDMf8WEwaM3dfKbRyIQjHux8cZge4gzNlOJJg/0YXnTVjSx63Xn4k0R22P5gVOfAp4zgsvDZv6u7ZMELLKI07WMjC0YUSiOSXPdvmihoBp+qrWHHphKVLxzHGryZEIn5G2+5eVdF9awk/MIEh5fKu/0+ckwv72jZYvtdmVAEuj9kJu9G97xtWyDrPztd62tO21OJZpVnlBYLJizcwuGi1giiHUUKKBquN2qxiM+SHcGyrnDdh9qCuASZABslixy82gHVtJoP/YqrDA1MDvyKbUyA5If0w+gMZCJXoQ8VZ0FCFrRiWTdFjTexi47gxybFpr9zyb9Z5qLlz9ysh+v1FasmXOg96AhI8hP5BXTwa35bNOAKbPwsLWUDTip4FvBisgPY08OkE4nd8Pwu/rtUV75zdM1PlAhlCxmXSZ3HTsAGKorXY+jKLSgC81gVvQB4H7E9dYJBUnt2Q/mWVmiGSCwhgvFIQzwauPSXhnLj//o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3849.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ILZgjobZwDvnARzrM0XPDD1anmW2I3MI9eICN9W5KKg1B+L0SX6qlN02wPbb?= =?us-ascii?Q?auN0p/D9CP/AoqiWM2O5tNtFIxuUo3iGfKW5IDLEYDNox1o+/np9A5yIlQ08?= =?us-ascii?Q?4sngz7ytgIwfyYj+VdvUlYZGzjxYeKZeIfXdo0/jZV+33nHi/ybYCt9Bs8Qj?= =?us-ascii?Q?MenCsNnPNQDqBVmuJ42NbhXg/Pw2rxlYdQJtNlox2urGZqAeI/NttBkwANDQ?= =?us-ascii?Q?T5PqPeJYSU6XSi0JyYrp840PlJYIocbeWrqaoddMiHbl0Q80N1/NxlhxuT2H?= =?us-ascii?Q?p933VWANE2dbj7XjwdJo1ap9PKEowk960nF3Nm2/0q9uWdhFSVrWo9PCiprn?= =?us-ascii?Q?66qFrXZW/SdK26yI7hHj9wspw4M/2CAbzUuAV/GiUhBAg9Tc942Jo+BK0h4V?= =?us-ascii?Q?TMSgAM8ITvrQVlnuD+XI9sXiygiu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xahau7uuS6ov9I538xOBSRcGP6XQzJD8GGDZzQaL8d5pluN7lqjhz9WJUZb?= =?us-ascii?Q?4G1QIrCeGouNkj7AyZ6aKtb91TI4FHm7DWebudGD6m8rTNWezlAeH5nLbDAb?= =?us-ascii?Q?SfpUfzjSlNATE1uItfKtTFyvpGskRaAb+TZMRcQl0th0TXy3tUBOnJMJncsb?= =?us-ascii?Q?dcYcipHWPSpteZGxvlzuAs/QwCtqbFkNZc6Fez5YbQv6VLfPAQ+p1lkhgSJl?= =?us-ascii?Q?pGJJFU1rHGIqhhd3SDY=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cd8965f-9b39-4479-ca41-08dc3c4c50e9 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3849.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2024 13:09:25.4507 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5mnAR5iBv7nQO6HluAIIL+a2h+6I0xiDfkT6LMhHCDn0QS2FutVlqmbenWCkxkMC X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6397 On Thu, Feb 29, 2024 at 04:42:56PM +0800, peterx@redhat.com wrote: > From: Peter Xu > > pmd_large() is always defined as pmd_leaf(). Merge their usages. Chose > pmd_leaf() because pmd_leaf() is a global API, while pmd_large() is not. > > Signed-off-by: Peter Xu > --- > arch/arm/mm/dump.c | 4 ++-- > arch/powerpc/mm/book3s64/pgtable.c | 2 +- > arch/powerpc/mm/book3s64/radix_pgtable.c | 2 +- > arch/powerpc/mm/pgtable_64.c | 2 +- > arch/s390/boot/vmem.c | 2 +- > arch/s390/include/asm/pgtable.h | 8 ++++---- > arch/s390/mm/gmap.c | 12 ++++++------ > arch/s390/mm/hugetlbpage.c | 2 +- > arch/s390/mm/pageattr.c | 2 +- > arch/s390/mm/pgtable.c | 6 +++--- > arch/s390/mm/vmem.c | 6 +++--- > arch/sparc/mm/init_64.c | 4 ++-- > arch/x86/boot/compressed/ident_map_64.c | 2 +- > arch/x86/kvm/mmu/mmu.c | 2 +- > arch/x86/mm/fault.c | 8 ++++---- > arch/x86/mm/init_32.c | 2 +- > arch/x86/mm/init_64.c | 8 ++++---- > arch/x86/mm/kasan_init_64.c | 2 +- > arch/x86/mm/mem_encrypt_identity.c | 4 ++-- > arch/x86/mm/pat/set_memory.c | 4 ++-- > arch/x86/mm/pgtable.c | 2 +- > arch/x86/mm/pti.c | 4 ++-- > arch/x86/power/hibernate.c | 2 +- > arch/x86/xen/mmu_pv.c | 4 ++-- > drivers/misc/sgi-gru/grufault.c | 2 +- > 25 files changed, 49 insertions(+), 49 deletions(-) Reviewed-by: Jason Gunthorpe Jason