Message ID | 106d22a58b4971a2e41ca65d9ceb30ed81fcf727.1736299058.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 49DA0E77197 for <linux-mm@archiver.kernel.org>; Wed, 8 Jan 2025 01:21:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D41F66B0096; Tue, 7 Jan 2025 20:21:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CF1996B0098; Tue, 7 Jan 2025 20:21:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B1E026B009D; Tue, 7 Jan 2025 20:21:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 906496B0096 for <linux-mm@kvack.org>; Tue, 7 Jan 2025 20:21:54 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4D231140E71 for <linux-mm@kvack.org>; Wed, 8 Jan 2025 01:21:54 +0000 (UTC) X-FDA: 82982532948.07.A3477D0 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by imf20.hostedemail.com (Postfix) with ESMTP id 8FBEC1C000A for <linux-mm@kvack.org>; Wed, 8 Jan 2025 01:21:51 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=VArJqSwG; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf20.hostedemail.com: domain of apopple@nvidia.com designates 40.107.93.63 as permitted sender) smtp.mailfrom=apopple@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736299311; 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=d5kaGBwLUPzP7+vVwbP5LA/mDb/TH68zjJSuMHcLH/4=; b=tSzpkNhQsf0bmE15udqBz/rwS8gOvbJMpmKRN2fKBoeFITYix1bDWhSrMI7EJL7l5+TCKD nwwKrYRLe6deFsxXWM7HCEKucu5Y0S/zEGfBAwbzSS+EOk8WKFVS4vHc+/LAE+WgZss1zm iK3lz7SRmGnvXfDiDkrc5JoLJW2YbUA= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736299311; a=rsa-sha256; cv=pass; b=S4kRiYaoSxAOmJnjE0JQpT+WEL9rtreFWbFKCb68tOJ/rtyLMNd8X8ZxFW2NA3vUryugFu DsiSYbqYUp0LaUCjA9QEgIBsrgbNi5RmouPRPfxj8q6E/Qz9pUZuvZOY3PQNzfE9Dak39Q IDKPD8ON3zXjfw9vodXPR/qZfLYEQ8U= ARC-Authentication-Results: i=2; imf20.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=VArJqSwG; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf20.hostedemail.com: domain of apopple@nvidia.com designates 40.107.93.63 as permitted sender) smtp.mailfrom=apopple@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CRlM5CFaJXfSyui47/Ebh1Q/q2ez9pijNuOJOycaoyAllbn7eg101qWZw/pQrTGhX1WylDIQwT8F2pxyz8QKyJxINKXzE3Tk/DAz2i/i1+UWuGpQMdQ0LOQmwnXGlABOERVsHrAeWO4OKI2Rpp0MK9GS0sIlrUqgLjeoCDaOqIoigob+PHDfev2iZl4du66SvddhZPmpr+ec0oVKq0BMiIRr8o9w88muETgMo/3wnY4F67Me6eAUvXdTZ4IwZPKPSJh95mH6/FDzPlrBBMd43/F1asu4kq4zJs1ImYLxW17vkLwtNdvo/tjnerys7sGISWTkVHyYNuxffY1/rgW66g== 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=d5kaGBwLUPzP7+vVwbP5LA/mDb/TH68zjJSuMHcLH/4=; b=YMNWa3aRN7woO2h2QDvq7lU39AFBFg8khu1kTUNbz1Bks/GvuYAVEJQs+Bagp378tmgLwK5ICnvz9MJStnjFu+1vZz9GKCmvMIoQq51FFPwcKS10/hULXWH2r7FlNC4WyrCMJYLGWjZHsW8WFA2lPyJvVP0uTmAe/2WIhW7JA9aP2krJjRYionflvo4j0kr4FCn6QSRL2Y80cJYZwL3WsWmXIt70K3OHqFVhN7xd+9OhukQAZnIYWQpBW2c/5HX0YusnFgG9ivOgE8lZxlckt0gjyATQCzk3RUELQ30fplKGtwtNV2on7qzqnpV8YikYPx8U1jMqNXVO5i/SA/YiZQ== 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=d5kaGBwLUPzP7+vVwbP5LA/mDb/TH68zjJSuMHcLH/4=; b=VArJqSwGgmHaKo+vu/rt4juvgsaUoomjYstwrM8B66EhXiewzGw1vgoUGHyjoBP/WneQ+TK3BBkuWDZg1qaaJUkJ7b6Bcx/ysyRWprIwA3qQFQj/hrcsOHSgJfWGh+uJFMzXc7JMiRQ5rxozIxo063RPflGyNFOqvQQDak8DS/T9W9y9vOhRXnzshVMAg7BuKmsra8oAHsUClpZ8/miJ0UpIHAtUqBZda4aoDR+j1WyDspWnZA8kVBPanLVZyUW33kNNHhr15O5eq1ijAxiuoYkcuMYR9AtyT2mISbGC0ZdvBKO2CpZlw2tlc7EmmpkJRdw+Mr4gQtjd67KKPe0AUA== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by LV8PR12MB9264.namprd12.prod.outlook.com (2603:10b6:408:1e8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.10; Wed, 8 Jan 2025 01:18:58 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%6]) with mapi id 15.20.8314.015; Wed, 8 Jan 2025 01:18:58 +0000 From: Alistair Popple <apopple@nvidia.com> To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: Alistair Popple <apopple@nvidia.com>, gerald.schaefer@linux.ibm.com, dan.j.williams@intel.com, jgg@ziepe.ca, willy@infradead.org, david@redhat.com, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, jhubbard@nvidia.com, hch@lst.de Subject: [RFC 1/4] mm: Remove PFN_MAP, PFN_SG_CHAIN and PFN_SG_LAST Date: Wed, 8 Jan 2025 12:18:45 +1100 Message-ID: <106d22a58b4971a2e41ca65d9ceb30ed81fcf727.1736299058.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <cover.a7cdeffaaa366a10c65e2e7544285059cc5d55a4.1736299058.git-series.apopple@nvidia.com> References: <cover.a7cdeffaaa366a10c65e2e7544285059cc5d55a4.1736299058.git-series.apopple@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SY5P300CA0006.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:1fb::15) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|LV8PR12MB9264:EE_ X-MS-Office365-Filtering-Correlation-Id: 08592ede-7695-4d52-1c33-08dd2f826d9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: TCIn4n1t+r5D43/TIEOfbhp5zwDqxsT2y2CqYQCZ6SeDB9oEaFgLZyL9skhAlbYyFJ9X7X4jMw5C4m0LVAyyg3jT7TjIdNR10M0d6Lz5O3c185DIwzaazOLS/sOf4l/U23dCPuCSVbHfVVroEHAK6yOu7moHJVrQJagZHTbnNfkY6CQxhXLKJ/9gWO3/mdldd8+XOwS0jH9BhqLEBzjCx10sQPH9ut7vDOe3Y7kwafGv+EIhk9ev6CPvAlRCRogvGRe5fXf4EyNHpRk95kBrbddc9YX56vh3oAljmbSz8bDF2cxFwt8liSbt6i5s+iZR07ap6btg9JJZDyDz0vmrGdVURiuN8H3O3ECjFJcdryeAeg2/WD1E/vJlauF1DnoyMQFPo3PJ26OBQLmmql7STTvxcoSERweOJQdmpO/YzNZzVLFv7+/GLbpSu1kcXC7orftaMfKIvHikuYQfGeSGGEMy4t0u+oeZbw5MMMt9ugRYKypSPXAXqpI/z6DnBFCf9IkSQA0MvL1sCWp4nQXIcbtgvNb4X7lr1PV9gVaW3Ngd8XjgjRJ4ceXbFOXXzPPfpgJG2c/0E+sKf95Lb3s7VTDqikXjgOJYAHRMFJzz0NmkZJyITM6h3P14gN+FXzzrhBl3gLBHd1fmkI1RcvLv0KvuXZrqfpLMpd1/T6F+VLT7kfP0z4ycHMo1/JWrTz0usumdV/Zkq034Jb6qVRwaBeKwK7xN64cdmlFpABzqtBVykR3v6ddu5eBHwWh2U0yBWwgJyrRNnPsASsqzndsuj5H3KCE/cdtW0QEFj8aqjjMlTmtui0Fb6oQ4SIzE5vTTH8esrR/+IYsMzC/JUEKgYGw9NszBuU3cUXPah98xqe4SkxKXF+iJ7RgdMO4CLdBV6dgN8tKtKqZ1w12++9KCXkFVQDOvyc6+GcoALW+VKplHp+xRTQ2aFyCXbQnUhHDTRvvHpZykuZho9lCBKknY0fXBqsNVTzLRwQJB9MO2b1e9tBpEyplttFeN0Vw0LbSdpeHkyPsR/2kACcLwAepJAJ74MPBX3TEd5dI5i2ksEuqpeXxogI/uaKgQQDtQYw+GkJO6Tq26RjGXwiXGpjAFRpnalXeF56F44RbuwrbqPWdP11u0FJrZ7k0+EqAzxkU5Bkt2eDkuLhExi1TvjlASNCTkknC5TGEHCsvCpc8ICqChCFoSyZirHwmqPRX6pLMvh+a3N5E76otWa6X+52ntQ/owtxVICrbxjSHF5HyvjibYltyBiy88KQWge7R0KoKcKS+05cB6m/bZUFnwxjeEa3d1PwHMn2RmadzCggYyuBSaNVzsZxCSHpIuTYG5FGXLLap+bbGUYC3ALU424jMNkHSH4cqS/Yl2/6IyMcCfr53BXyckT7vmRsB5OvIIuXYZ 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)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d0vA05v9TUtw22ces5pGb6AqUi/GIVeGbJ0+CJzQfBLSi9t/RX9k/W0a46CflVHfRgmc50DI8my3t9JHTyNp3zonkNw7SWmc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QQprB8s0MkmuxVv+w1sG3L5aDrdNE8V/oXgBf7J2n8YBkakY06cqmFFLCXr8ONsQv2QQZYWGP228ojkz+ibyu0O5kX4mCbEtFLTYqo88UASjqr6jaLB1DesIaWuNIWe33+yemRTEg1g08Fi9p7VSEWQ11cI0E8FP5331SRBQaPubk0L5pCmiIrvn9M7OpNol8zt5F8YS5huaKxADw4Lr2HWTcMACiPgorZHAR28V2V4W2jkIk9adle2xgROLXfY+DLook3E01izs+Ff8JlECWeOn3rn/AtkpXamzTQc/R+0mTVchyKn9UhknIOrEQDXSNZFP/lZstL9LhG4pwXY9ctpfk6xGr1tdHbAhFFjExDOh+JsiPcth6XXOErkQ8ZXC/IY+aoYbuiJ5E5xxRAFBotvzcp/+zgaAb077po+f X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08592ede-7695-4d52-1c33-08dd2f826d9b X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2025 01:18:58.8625 (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: nD7ZH6upB4AcUY2XJzfFyiyxaWrvaCXxpFc7mThyUvtpuSzNTlh8V19k/bRndA3xzYyWMyOOIY3KTsOUC9ljag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9264 X-Rspamd-Queue-Id: 8FBEC1C000A X-Rspam-User: X-Rspamd-Server: rspam07 X-Stat-Signature: zqytmpqxuu6psgacezhxsffa31a1y6un X-HE-Tag: 1736299311-541008 X-HE-Meta: U2FsdGVkX19yshQTvZMBXPmwrU4ZpmEPxPymZLn0CjajOdHfPKidCcW9Z2u5IbqDnyCCzmaN1/sh3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KZ1aQsvGYkwJk4zbXAyvRNw7RNgm066V1V4CJEVZ6Di1XA1b9pv2Xrm5wvh8eP6TvVlyWzk3GrmVwebgqW2uhI8WBMtsw3ctwxEP+Ed0V+QESUxELXDP9R+kZc6Gz2FnEX0NNWoJqABuHmz5RHO3uZyKScUolZT0MeysjGbLRi+B4A5ZHBMGpsnhRT1R0OzYwKOT0gWLvA32te8nycu/HtF3wtU4JGxMJzwfSW8iQ= 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 |
mm: Remove pfn_t type
|
expand
|
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/include/linux/pfn_t.h b/include/linux/pfn_t.h index 76e519b..75bb77c 100644 --- a/include/linux/pfn_t.h +++ b/include/linux/pfn_t.h @@ -11,16 +11,10 @@ * PFN_MAP - pfn has a dynamic page mapping established by a device driver */ #define PFN_FLAGS_MASK (((u64) (~PAGE_MASK)) << (BITS_PER_LONG_LONG - PAGE_SHIFT)) -#define PFN_SG_CHAIN (1ULL << (BITS_PER_LONG_LONG - 1)) -#define PFN_SG_LAST (1ULL << (BITS_PER_LONG_LONG - 2)) #define PFN_DEV (1ULL << (BITS_PER_LONG_LONG - 3)) -#define PFN_MAP (1ULL << (BITS_PER_LONG_LONG - 4)) #define PFN_FLAGS_TRACE \ - { PFN_SG_CHAIN, "SG_CHAIN" }, \ - { PFN_SG_LAST, "SG_LAST" }, \ - { PFN_DEV, "DEV" }, \ - { PFN_MAP, "MAP" } + { PFN_DEV, "DEV" } static inline pfn_t __pfn_to_pfn_t(unsigned long pfn, u64 flags) { @@ -42,7 +36,7 @@ static inline pfn_t phys_to_pfn_t(phys_addr_t addr, u64 flags) static inline bool pfn_t_has_page(pfn_t pfn) { - return (pfn.val & PFN_MAP) == PFN_MAP || (pfn.val & PFN_DEV) == 0; + return (pfn.val & PFN_DEV) == 0; } static inline unsigned long pfn_t_to_pfn(pfn_t pfn) diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c index e431372..ddceb04 100644 --- a/tools/testing/nvdimm/test/iomap.c +++ b/tools/testing/nvdimm/test/iomap.c @@ -137,10 +137,6 @@ EXPORT_SYMBOL_GPL(__wrap_devm_memremap_pages); pfn_t __wrap_phys_to_pfn_t(phys_addr_t addr, unsigned long flags) { - struct nfit_test_resource *nfit_res = get_nfit_res(addr); - - if (nfit_res) - flags &= ~PFN_MAP; return phys_to_pfn_t(addr, flags); } EXPORT_SYMBOL(__wrap_phys_to_pfn_t);
The PFN_MAP flag is no longer used for anything, so remove it. The PFN_SG_CHAIN and PFN_SG_LAST flags never appear to have been used so also remove them. Signed-off-by: Alistair Popple <apopple@nvidia.com> --- include/linux/pfn_t.h | 10 ++-------- tools/testing/nvdimm/test/iomap.c | 4 ---- 2 files changed, 2 insertions(+), 12 deletions(-)