Message ID | 3f20b8d258d4eb72e1eadd5926d892bc61f0e0d4.1734407924.git-series.apopple@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 41D82E7716A for <linux-mm@archiver.kernel.org>; Tue, 17 Dec 2024 05:15:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C63FE6B0098; Tue, 17 Dec 2024 00:15:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C13456B0099; Tue, 17 Dec 2024 00:15:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A65EA6B009A; Tue, 17 Dec 2024 00:15:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 89B6B6B0098 for <linux-mm@kvack.org>; Tue, 17 Dec 2024 00:15:19 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 3D2E18045C for <linux-mm@kvack.org>; Tue, 17 Dec 2024 05:15:19 +0000 (UTC) X-FDA: 82903286634.10.5227247 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2079.outbound.protection.outlook.com [40.107.220.79]) by imf11.hostedemail.com (Postfix) with ESMTP id 009394001C for <linux-mm@kvack.org>; Tue, 17 Dec 2024 05:14:48 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=robvJ7UX; spf=pass (imf11.hostedemail.com: domain of apopple@nvidia.com designates 40.107.220.79 as permitted sender) smtp.mailfrom=apopple@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734412485; 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=rWLD/0xp0BR6MUjdXJUQ+QA/Pxu3/82VW88rj0w5N0E=; b=IJS9S/nAEuxTK0mOedxZwinNWzhrQXi7Q3ple/Tv8tvHXokAi/cN1i0nwIiHEdU6f8PvuF MHzcPlu3oOUJuWWt1GLzFjHUoO+czpA50t9PtudwPUNSJ1CZTxu6K4DXcE41KcJekc3FMq lZ0z3I1DzEfgX0rTfj9stJjNKeBtifk= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=robvJ7UX; spf=pass (imf11.hostedemail.com: domain of apopple@nvidia.com designates 40.107.220.79 as permitted sender) smtp.mailfrom=apopple@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1734412485; a=rsa-sha256; cv=pass; b=Ht2gynNtu7zK2xXJPQZ/1Fh+bzT6z6L8v3g3sDJrwQRtICZ3wjsKxun57GIyS53/1YM2Mt ObXVq4qfDdaCGKWrz/QhAWfFvpicrY3XamT5e9pGR8ruPsIB0l4kvUmHAWVyPCcQP+beCh aUIJuel1mWDIsNAKr06aqmFvxAPoiK4= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZuhAM4Lz3Lzkh59oZymTxkTQb/yV6rdBlqoY5Vt4hvXq5zzOBADgffLYZZ4h+Y91XpPgn50XXHJdSCovO3Qff/Xq6uE2bRG2MCyUQu9n/e64e4BmB5OKRBFLcKbZcPh+veVdf8siZ3HiR+W+huvY63712MD+muFLidjP12iV56e7xwThfeLXco1/dsC8bb3N1eZL3quw4ngezfux4kDQDrr3xU/Jrn+dxY/kFjGXw0ok7YBTD2Hu/gMn/rJB6wVDfM8HViRfB8vQGH41P2BUNPS2WEIhj7cAwO1FGJrpdql7I0Ys/a28iqI4/Vr1cPDTQ8+dnPeuU3BxrMFfwHQnDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rWLD/0xp0BR6MUjdXJUQ+QA/Pxu3/82VW88rj0w5N0E=; b=Q2/e3YmzJHJxz7CHu6bw07MCFUz9gY4CH5w657r8DGXbUrUCbXbQPHWuU81+O8y/S3x+ISQV9LJu/tcvxsoTqC9mlGqaAwv1nYyubJyCpchx6bsNxmmOKSax9o4mCkX8ZKETAS2V1B3xKRpcUlFdPgTVNLshMeSwDeEXWA7NCOy5yUb2KZHKtUczC1tRnS+xtw3xknLDIHolONn+DCJBiYphEIdvABgVXiwGDljlzRZ3WpOh6uqEQzrYjs1R7Lg/RSz0PGH0kwS/JxyLfodoFKgMR5z5iO+nt+w2+1b7eEpKnTY5vhTeyeM7u3z3gRL8D0fo97RnDmAs4qT4qmiL9Q== 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=rWLD/0xp0BR6MUjdXJUQ+QA/Pxu3/82VW88rj0w5N0E=; b=robvJ7UX4m02ou1t8/5gJJxqgqpgOa8hm+sKcitjmnnESl6NsnLDQYg6K5Hek3L1CV3S3lVOOUe7gc2iNcPgCTaWwLby8LWASzaimFnTOv2l/9FvPTbsrmP4Wjo3WMg26tPv8QD7Lglaxhh+orNmPTS/eVXuffFWGK1YUSZG37CcqPIRapI6lz3saF+M07y43E9HUa6WOAbWmSKWYLzYORjx8hBxCCZMTKXqlDCfknCyLZdGME3s6o4ff2UE4DquhaDsWAWbabzAXuU5huyr0Zpt6GXUvRjF3LdlIF+ARbjahFmhfK35lS4u8lAXskEFqGa429QBSkyJr1zomq2xzg== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by CH3PR12MB8936.namprd12.prod.outlook.com (2603:10b6:610:179::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.22; Tue, 17 Dec 2024 05:14:22 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%4]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 05:14:22 +0000 From: Alistair Popple <apopple@nvidia.com> To: akpm@linux-foundation.org, dan.j.williams@intel.com, linux-mm@kvack.org Cc: Alistair Popple <apopple@nvidia.com>, lina@asahilina.net, zhang.lyra@gmail.com, gerald.schaefer@linux.ibm.com, vishal.l.verma@intel.com, dave.jiang@intel.com, logang@deltatee.com, bhelgaas@google.com, jack@suse.cz, jgg@ziepe.ca, catalin.marinas@arm.com, will@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, dave.hansen@linux.intel.com, ira.weiny@intel.com, willy@infradead.org, djwong@kernel.org, tytso@mit.edu, linmiaohe@huawei.com, david@redhat.com, peterx@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, jhubbard@nvidia.com, hch@lst.de, david@fromorbit.com, Jason Gunthorpe <jgg@nvidia.com> Subject: [PATCH v4 09/25] mm/gup.c: Remove redundant check for PCI P2PDMA page Date: Tue, 17 Dec 2024 16:12:52 +1100 Message-ID: <3f20b8d258d4eb72e1eadd5926d892bc61f0e0d4.1734407924.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <cover.18cbcff3638c6aacc051c44533ebc6c002bf2bd9.1734407924.git-series.apopple@nvidia.com> References: <cover.18cbcff3638c6aacc051c44533ebc6c002bf2bd9.1734407924.git-series.apopple@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SYAPR01CA0043.ausprd01.prod.outlook.com (2603:10c6:1:1::31) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|CH3PR12MB8936:EE_ X-MS-Office365-Filtering-Correlation-Id: a3f9a3d2-d41e-4f69-cf41-08dd1e59aab0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|7416014|366016; X-Microsoft-Antispam-Message-Info: KeXdUNMXcMsffmqLV9xai82k9RB04qFYy6FM0459edjpdfrwrFxHFmcrPjFgpcFzrHAT6nldxRu0GDOwxaLS/wNSqmoAUpoR7FBsy+s+2+at4vni1uNIbz4bRZd0UOzteWy4X85GwtCCCzaRd/NfKtWbRd3NzplYahNIgRh5nkcyssAh0T6cQQuOXk/uSISoIhpO58NAEtkCnRwn9Wxrh0tGBLDhU6rUdhAt/syKTuoPG7S2aIuyJzxxr6ot+nDkyWkiT+EhdZr0NoK9nMObY1jFdO2zL4sEUhZAus5ClRw/e/XDWo9EZKtJXv3OqNaN+vciaLLQQg+BK7sauALve4sBtlT5GCjd1ms7SkyaWPJZRoe4zumnE9w8YyNiCcubkxverJuV90qy62SJ3MqoTz6LAJP3sLU+X73QWhmUwC1tu19Dqf1NMVcTj6V6UfPvHEFyiBZI92zHHANHNDKJg8qk2DUI0QQGo5JAZ9CXjlGgoVlGD3Do6nhU+VSSiXchB3umJL5FrEYTO/OP5/cFFe7QuPUoXSZVsrORqRaZzZnWVfcbELQj4PtrOjQ4Z3/+RFfE7j4kSU4CljLREhSEWtyH4UtaUxw3qkr1mZbK6ieFzP/Ai4oh4zCdePpQtsFaemn1mSntcF6AGnLBagw6heLV0vTLF+KTDzypvWB2BBoUHymAPKTC2ZcXL4SKmNHbcVFCFl8aVARgWIP8Usi/YizZkX6az2rrbLjVba3tt+itxb6SBhlIx43ZIYyC5JiOwyXZ6sCo3TTRAlkPm+Fnjmo20ZqhAErN6tX/ihQLB/QljGPtobfIgsuxfXdIqWRBJQQi7CyVAHp+/Bemt6ZP+uh9qOYMk97YY8FryltMe7E2n5sn6F0QjThWZzRddOMkDrgOCMsaOtiZkh3X2fAl6rIdYgUbHEXQ9xOz98VzINvhTLxF4h+mOJt/JJXY4Di2bCDRE1T1SVVmhvRYQcIdv6XGgjS9MHNFvzy33Y1aWswB7XNmQJJj54xV8twRa198kV40uLMI9pcwOPJcgFadxVe26ztUmohXzZA0+v5wYwEWoYiRR95gG7Z1dFKSb5KJ8eFXu/nf8d4W+FPWkZNz4clrlB4OnLvS5XRflnS9jTR90RPeSRwsK2XmwKdclmb8upg/GrLotqwUg0Sc77GnFS8W02ZiwczW8rpJ7JzdbHO/9zs4ntxPsxDcQ4F1FsSwpd/C08+yoIO9mqUkTxAv73NbUDoIFK7Nbny0ijcVTvE71vzlNHqf6bjjECHkyM2JWP5oNt+YDzf1XrAvqFjjmDLeDLWwRcoJy5sNS1iFt2nFmsuCD/IOm95zTaecbu6Wls/mGggp46JIBnreWRce0aPfVA+U7MYET/RdbOzdz5lqZ3O7yY8g9TZbYgLmXjV4 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB7726.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(7416014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WBoQrfBQeZmgmNQcOX4zvM+MvaGtbXdAx65MIguRpaPV9yWKIMfJ7tQl3Fg+90g0i1eLZJPLEj9cjkDN9NeAD3COIVz+zBCVvkpgaVu2EDb3Y5QPMb9YVhkHByvjv6Fu7DOLVHyPEevZMudZYyWF6pOshjSaO8OHSmNhtcXX+K70unyPY7z9GtHyLzCEnxLU/HPxtZudRjJVPDI0wqTqb77s/fCBDvtylRxP0qBqusauU+f6NSFVHM+5Wa6Vjj0voHtrlgto9YJ8U1O3dTxhcy+sqAXMy5YNSvmeRsDMJyJcjTrjgevC59zwgCBYoScjLwtsrAtiJu2eJJc6Xm9YsWy88q26lUNj40CfhBmePwTk2axAnTFvGC5rLzbADkBipZWN6VOJcHkcbgs/ZVeIIqasjwnce3BrS20CbaGZfFsv/plv9HpSnzgZqDOGEfIR+XVXZzlQlcfH38l36Wdz4HTAddAWNJFnJIdCJviKg/ALyJNEgHAz3f6nk9K59zgI+akKdjI67wRPn7Zp0ZdAPOMpr3t7FZBfHkqyFzDVsroILZdX9SQrEr27A3VippZp5CtDGbrw7WLdNsRdJ0nqS16Ulv47nkHFW3D/l5iQe1oyJ7tbkFC/OA3FNZI+f0/5JJyOIttSdQYRC5Nm90/sD5wR9SbOH5/OK4AgrWnNimr/vZss7lBVydSbAVxrYo0RF3TR6hi0GwjZDWuxj4h88A11n01GpTgA6w3nth2InyUR1ZmFvbSUG2GVA8HKVlDlftlrTR5tU2v1i9x+s45S/5IgNagJ69ODd3x0rvc8orULaHJioIIn9FtMtPMhiAFv6zy+L33PvsKgQcF6R9vLol9KPjknzg7QnUj8Gm+jr9S6Q13BDEYtFeXdyCxt2B3cDxGITk2A5f1lN7KN0qw7cZ2yawegPWYhtKLJRl6fLYLnd8lhajJ8U3k4UudSpXWxoSOh8h6N80ywRyZGOyNZNCtsdDEai/DPASlL5Q2YslEj5/0ZIukx/PHPgc968M9pzgWbvSrJWgjsblQOoHbWS8k7Eb5lAH9HO60HtEUsZHNksD2DBPXqpfu5Jh/cksQy7h04nG4/C87Y50pyqo1jtsbskrcXduooFyQMeDD71g8pp2+2GPcgrb+NTzGUMBVwD57zENxVtSn2v1G2QkYVzAP82W8l7LHHwmz2kvw1GkSMuUsvdV8KTp+G7JZyY1e/aT4ZUgMKiejQjDFCQYtnIltUswkoA5RM9S48QUS2/LCsa/+AKWu/GRTK1kzUwiTG/dVs5KtbNvVSpX+69Jcx6TTOeDlGEMYDeUEesGoeiPgzafhT+HZZzeKUyFLAiAXR1U84uBCMX9ZAPC0VxwIMWLYPCiAZZvgUpMy3+zzj6SpzyJjvujzr9UZmapSYMnuhptYaYktbNV0UBj2Qb/5R/FCcSXvMghJeqjxzqPOy7UuGKJoT4Qh1TBieS1JdJ+csjzqMlB5F5Ly98vDebaJ2LuJaZRmzFSU9kyfxKRpi9SBZH8nGnv0QTlh6X49SmN5LwU3/HFOfY2h0GyxcFMDvAQiEyFPTxlt3cewmpFX+5WKNRhCB5pYpSMfLuSR4Fqjt X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3f9a3d2-d41e-4f69-cf41-08dd1e59aab0 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 05:14:22.2245 (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: UPj3/J6ZZvczFuiRCWVB0Ngx7fpRmpSVxMqP8vhMMljvOpS/6xepKzVErcVcxLNsIy8Xs8wegRtq3Yt5NF/4Tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8936 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 009394001C X-Rspam-User: X-Stat-Signature: qon95eafcofhs7fjcfarkmpoyr5dnkx5 X-HE-Tag: 1734412488-941752 X-HE-Meta: U2FsdGVkX18sJraFP9HeGSF6GsbZZe+Ha7zgggJEt2yBPYup6BX54BuYR3xaKt2+zu8t0Y62Z8j0srnthnOUET9PyXJ/81KU+2Q0vwV4XxMuQSIu93jhS8IRKxSjduvkZQ8ZrxHKK542zOJiwzn6B+nH+C/KHB/zAvIyOgWJGcm3LIFdDd5JcAmkBClt/c3y/jxMK2wDdpmnRHskkaCPv32RPGk5x7z7uNkmD6yR35/Cdm+Vh9q8RARbh63ZwL9LZEBPpgLZMH5gyGY8NncSovVxH73z5AD/7Y/rshYZIaidR4fFRsdN1wlxuR8YZQz+6WJ1blM6DrZikRdCcRdcX/WSpgusySfWSVK3/vVXqkdpZBniYAjXAF1+GCXKGkX8UAah4SOnJtkXTC1tqvew4trcah5IQM2X4FGOyOMNOFI1MKQJwbPbT+/MZlaxRmIb/LUTWyRhJmaomSNFbIoMtbp90HZzkoxOzJrSbZrpNn3uX7Gfzai0hWBwA+gTF6ukLaxUH7hrzvztw56q5RPDf5pv/cnBmV9ElrSyYbjZd4xmLIG0SDwYLVzCStR+IZRDyLkDx3XbfRnlcR4sRR/NOHzjD4YS4YpwkFmmYHyrIn8KZ2qnQwNtHeCer4uRKPx3QKvwdIymBADETE3c/hHC0ex4w6zgvHMZwn1EtBIc+6Ks+Zcvo41Lv7ax5Ip91MFNcd538g8E3qSEn2Wesf2UH10Np32ad39iysD6yqq2H/QL9M9fppA4HArPnKKnu1ptevgCuB5TWnOA6/oiS2pv7e4OZqdgAAmHSJF0Ov4ax21JZk3y2yGbtu/dHCZTIV83RWLsA6cAa2EvjAZ8zepYRcr3piE7og/8YnJ50macFImxwGURCmH9B6IH8MyR/YQaM4KZkynjqABU4/cRhk2dPhRttvyVhcIApalx7TEfQ7+T4A+Jf+WGGDJk8onHs3aqtmBaw3nlB6gI+fVsJft E6bPrpQd SQZkPeMhfogbh7TKilSTsYOFSYj/MjmzkQi4tlkd3eEVokOpt8PjHP6hxWcAEkpdF9ajgjLFrSYnBgKIXDwKcsJRq6Im46VR2ry9ivlC6cTAhYdJTcGvUeKwK76z+ds4td3WpQ7a3PHSlPdyQcGOvomPdInl5PmXb6GJYvvX1sQAB6OxNzVWG9IWH9eieDkw3PU65669BQYjEHF+yJesULEwOLaHqkd1/3MeIT8Atc3kuNBee1NKD+fRLAUP5Bk+pXP5p3BI5ibLk4gjtaakdNWarp89U61cwWJm18UWOPWH/mU1Q1CmdyVLd6EswiDr7sE5h0jgnTuNb/llqM7aT0oNiQp8aQQwBpUpPCSuvC0nZokKOyJ+H1l24QnIHiSFYbSqk3UCOsP0HiJPINVL+7VdWV9qINlp0zTI3x0IJetKpMbCaL4RDk5RJvRkaVSUvZhUV89p2tuxbkPk= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fs/dax: Fix ZONE_DEVICE page reference counts
|
expand
|
On 17.12.24 06:12, Alistair Popple wrote: > PCI P2PDMA pages are not mapped with pXX_devmap PTEs therefore the > check in __gup_device_huge() is redundant. Remove it > > Signed-off-by: Alistair Popple <apopple@nvidia.com> > Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> > Reviewed-by: Dan Wiliams <dan.j.williams@intel.com> > Acked-by: David Hildenbrand <david@redhat.com> > --- Nit: patch subject should start with "mm/gup: ...".
diff --git a/mm/gup.c b/mm/gup.c index 2304175..9b587b5 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -3016,11 +3016,6 @@ static int gup_fast_devmap_leaf(unsigned long pfn, unsigned long addr, break; } - if (!(flags & FOLL_PCI_P2PDMA) && is_pci_p2pdma_page(page)) { - gup_fast_undo_dev_pagemap(nr, nr_start, flags, pages); - break; - } - folio = try_grab_folio_fast(page, 1, flags); if (!folio) { gup_fast_undo_dev_pagemap(nr, nr_start, flags, pages);