Message ID | 99041691148ed3ef92546aee0dc0cd78ff143ab1.1736488799.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 2A5B1E77188 for <linux-mm@archiver.kernel.org>; Fri, 10 Jan 2025 06:02:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1E9E6B00AF; Fri, 10 Jan 2025 01:02:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ACE4D6B00B1; Fri, 10 Jan 2025 01:02:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8D3626B00B0; Fri, 10 Jan 2025 01:02:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 6ADBB6B00AE for <linux-mm@kvack.org>; Fri, 10 Jan 2025 01:02:55 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 2C9F716087D for <linux-mm@kvack.org>; Fri, 10 Jan 2025 06:02:55 +0000 (UTC) X-FDA: 82990498710.20.73450DF Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2070.outbound.protection.outlook.com [40.107.220.70]) by imf29.hostedemail.com (Postfix) with ESMTP id 5EBEF12000E for <linux-mm@kvack.org>; Fri, 10 Jan 2025 06:02:52 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=L1vXwFWj; spf=pass (imf29.hostedemail.com: domain of apopple@nvidia.com designates 40.107.220.70 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=1736488972; a=rsa-sha256; cv=pass; b=RiwF3slK8TUz9wzdKvFgmPuwAal+XSCD5rKPbldoWBdwkF1P10EqLVVZXg/M1mhdqV11tJ ERjO1HqRgsfjRb0f3Gorq1typHamI2Af1vD184UDr2XJdRSnT9/tpOzBZ4DEt1Ug3B39cA ctWmMHWskkatZgy6gS6cDFKi9Axb9TE= ARC-Authentication-Results: i=2; imf29.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=L1vXwFWj; spf=pass (imf29.hostedemail.com: domain of apopple@nvidia.com designates 40.107.220.70 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=1736488972; 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=MDlQUB0aqP2xs6wtosFzyl65rMLf5s6Je3RoskpfjSc=; b=b5UgQZ3D8AJeyQG0SEgvWnjUy18xAl1WPGi7AoXElsUUro0KJeqEUSG4Tf3VKyb8jI75/h L1+JnCePvq1Vh/Asn1ibWFIbgepYrYcF8/h/t65mTc8y4t7a2iAUSR2UG8c3nv+qmqPqRL f53PANDxKnJwl6+hi0m++aBGUFombNU= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BmxH2JMN1fECXK/UQWkGpBm4Zp2t2g8QV2Nlz7U9MrdKdCSj4Iq39rzTvL5/r1DQ3xj9qSErx2ppYpuNnGu3r8oAIJa6sk6MsFLrPMPooYRuG93aF/T5J86MaG+EfDJ9DOJBG3kuIunjdHnNA6GA9w9RimCuH00bcCnLhc5cOO2p3QszZocmXqEhEiWhDzak/B4QtKyEwVwmkxngNd2zgW8zNXdNBoAMrNKUDR9QxnsFVw6wXfttBzllDvALz34VLOiBnx25oQUbXuPoJFe8JV1jnolT4I2pZlB35KNHOWYw2ACjjYxe/3w78AwfnP+gotkuUPYr0MBfnVjZSPb/0Q== 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=MDlQUB0aqP2xs6wtosFzyl65rMLf5s6Je3RoskpfjSc=; b=kBZFUnvb/BkS87rRzHyjfdx+AU3o9Lw3bX+3I7So4qNH5+odnTPKFwB+JNgxjMCEkJGy0vSwNgttN4hl/Pz71HZqcI5o4WxAaPsHTC+KbUuHad65JBsLx8+T/H5vYfWQeu3hTnWIokiMeR/E1/CIDFnJW5CH/GFOt4hgPfYEtfe/0Q7PDMrqORxB2hc+M1FWFGFDQOeVUGgbe50Q5y1SPhUX7PYEjm5Zkse6JZ0z6+yuELBVg1sLMDAd5NYUZZ6amhkOy33/ncvgxf3SNTmSoClSGPftf1EFEo2eTU7a5ofsTpp2MQiwFQzgV9GirejFa+CguEE+mqXAKaXNcCnsXQ== 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=MDlQUB0aqP2xs6wtosFzyl65rMLf5s6Je3RoskpfjSc=; b=L1vXwFWjm7WZTNzLNJN0Wwh6i7Mo7n1obzO//hXblwqbYdAPPddwaUrq3JPaSeG2d/ouK602G3NtEv3C6PN94SCNOkZK9z8vNkE1e6CNUb7ZWtSW+CDoxaJFb0jGO3qh/i6yenZlvxE/NuTonFgO+NrKmW5yfeHMPwvV0ZSHXf+H1RMvbdQGDdINKCr9YfuYZAfCVHcb4qrfeDvBmudSoXyqVR0kgbNTTfrhITDQ1ORKcnKI6/7AFJ9RSzRu75ayOBctbbTuzmC2tosbK397+WhVcq1SoodP6OydvtNbFizYfOk8gLZxI29g1p5hCfKfXvgowfD4mpm8VBqC89WnVQ== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by BY5PR12MB4132.namprd12.prod.outlook.com (2603:10b6:a03:209::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.10; Fri, 10 Jan 2025 06:02:49 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%7]) with mapi id 15.20.8335.011; Fri, 10 Jan 2025 06:02:49 +0000 From: Alistair Popple <apopple@nvidia.com> To: akpm@linux-foundation.org, dan.j.williams@intel.com, linux-mm@kvack.org Cc: alison.schofield@intel.com, 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, chenhuacai@kernel.org, kernel@xen0n.name, loongarch@lists.linux.dev Subject: [PATCH v6 17/26] memremap: Add is_devdax_page() and is_fsdax_page() helpers Date: Fri, 10 Jan 2025 17:00:45 +1100 Message-ID: <99041691148ed3ef92546aee0dc0cd78ff143ab1.1736488799.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <cover.11189864684e31260d1408779fac9db80122047b.1736488799.git-series.apopple@nvidia.com> References: <cover.11189864684e31260d1408779fac9db80122047b.1736488799.git-series.apopple@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SY5PR01CA0070.ausprd01.prod.outlook.com (2603:10c6:10:1f4::13) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|BY5PR12MB4132:EE_ X-MS-Office365-Filtering-Correlation-Id: c158d73d-f968-4f23-1952-08dd313c6967 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016; X-Microsoft-Antispam-Message-Info: qWz0Bk/2hGDOzGkglyAPRKjSCgEDEDk4wvbXrXT0CqKEC5ljjrnI/INSIDDX4QHddbUP0gYZ2t5wz/c6j5jt+8oq5/Fm5f4gvOuTGJrPYlg0zD7s4QqUXpj/E7prOpwJlzYm8OAZe0CjbneItz9bCzZ/zSmdGNCclAp3wkgt2PZIDqw3EDGiLdmYl8K0h1POgN5+mrUvFSQ/5rzBHWpkOSfp3XdgRYz9PagEgQb0ZRKLFWEfXxDGiWaOZg08Ql/vCkbO95vL7ZfL1vU8IJN5glFPr7CwnkJ2jbv/ln4ocKQk+ppRfyvkxX2SASN2F5Kku+EvvtflioNwNNF5l5W5H2Expdt2b/2MyIX5zlk5NiFDg1HY75TmlcN5uQ5uNGaMPB2UhzZZ7+UXPPgw0Y/7XC/GV5U8vgaanLWhw569hrSXWwr1YLVk4foY92zz9Q2WOLDzzkkZOHCj7RyqG2LXjc0YKvD5X4oDtdA6IA4/iQJ3qAP4g+zLmmmJvzmBHFRuzRnC5yghI39tNFgBoVrINztiEGj+U1sye/kN3VsC2m5Mp2+wWU/vEPl0YinbGqNzuGhXt7UvZUbTM0U/4Bw73KwtHCLi46cZYXghjqqzthCDhGpH3VPoYfVJyURHYlk3qn2HUVM0GgPx7i6xzQkG9COugG61ad0iKH/UEw8DOyfY1AhCPeon8mZWnEcLbF5aBU66U/2yPZXG+zd3spNgEAuYwWSnlVS68aRV3ztM9P0BtmsICZRXLq3OBDeI2OaA4gJjMOkrCzuAmPeVLapBez30o26Zhg8AZMD2dTfOh1/ZvDpFwNreMl7nFDUTKkoRZyCbsnPrDLRLlxwEomYZWBH4P31Gmsh0FnBOVsUgmtt4zo5cHVF2+0hPQjoNDDTC39ciR60TRy6WD+JRvFVYd/Ym1ayn87FyKDyrBvd/vm0Oto8vQrQVC486Jcli7BrAl0C7Kuv3PRMC6VSmByRJVpmCrXE9G2LDFMWFTEChOTYvYsR3K2IGlADSXXwpeSD+D+RRZq12/lAXgqg+nFI+EWiiDe393nXRxv138GtE1degNH88o0LIf1EzlBSsVt56Iyca0ksmhiP9M4yCJCzlxjxhomZqmlyeIuDZV/k3f8h6T6Wh1uRRG4Oq1vdXeOjZFO/ml1dLQ0M4z+DReK6B++LvFO7l3nkD9wyy6IZgmpuFWQclBoQzoJn4vyMsvM6TAv43Ub9KJg5bHBTaDCTSgi+qtYZYbW/O0+W/sPLsS4nRGy2QvIv+rV8zL1JZlpuS+BVLlNA0Hzi+9NqrMkxOx7f/AoDqdkrpckOfKLtl2BAyB8h/UAtVZ4ZYJQBeriJfKimZ1drd+OoBb5bi7Wh44DHDy4cUvquwCWGTARdQJo7anFZMAJ3y3xCTttM9mv2v 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)(1800799024)(376014)(7416014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: h8W3PVQqU5qS/0AuU7etOCdGBrZv8hPNMxKA2jAbTCXhoJdRYE6pikxjmcjcix9NtOGZoc65z0L4heDvRxFjlYUIdPsCjQY/1uFnkFsPaE789oPxtfD/QL7Xi89jEbH5RuQDp1xOM7vBZ0mp0tr35ZQLN1orhVXGMd97xetVZjlNLX2GRLffCyYlISbj0cycNRX43Zblo4B1LqBEuKw5IMS97FcfJcs+QXCfHmR9Xw43X8GD4Sme4PmzWF0fTQubeYUS84NzMfkXeAunKx5G0o0jIABxNJVoBwZveCPOi8Pak9fCMW3vGuAtonZbhGE7N+0Xi2BPpu81MPqcVEyiQ9d/ZtlasZfsEp6KlkzyMxV3JGM8zgQGfhsXSs/m9oXF2ROhcPjtmxyUoE0cWTcVBtOR9llQONonCoEwS7BygpJkTA/M42jBTSAb4d7b8TBtfqZ2GC+Oh6Xikn5LbwaYQu6BUn3PG5BoGxJiEUJMn7GXU5piFR70MLY2C3KTLw5Q7IevVRjI5PdUvVq6gfU8vbkzPq0hdG5RB4uPrk5EI0wP/CpcK0fD8nK8cPfk0RCjrGyG8sQdWIPV9gzvEjNYbQ9ZDVOrqSz/nL0TFoF6g5rkgzvl47YgaGj52xk4yNlQ7Kp23fzWWo8F+v4x1TnTG1sX2EfL2PRWh5HCGZpGsSDRqJNUoVjryVofvvz5j91ivaggP4VM6lE4FiTeasNDWwMcwDGrrqfCsYArziLbMYm5MGMXO8ETerTOM0wU/gDBvnOroqUMlcBK7MOgzdg2HLE7HbkUoj2srdcJY5rWPDuiiiwZshxVxFUBUWFwgTsLstGq2bPXbHDaXwGxXmHEujdCwqRhzAZuIHiRyXZ7fbGK/DTOm/H/HIqhCkwpE1vFptMeLdAr518ofF96D40rk8bo3ppZ4H9GwVc7GyaUyIqdPhQJ8YSxPiJwa4hcY6FDA002vaQxfgjFmzy5ldYcAgAXF/tQC3KKldcwdJdzhw9YSo00pYBEY/lEBS+hzXwsHuYev3p5k/Qj/mm6uo/eW7Ml5xCd72wjHSIwFTHyA5MYTn8RbM2mzqQUqMHaHuqTEq9Rmpqlz0F3wwBcekxZGj/khuoRcqUJZuCiNEd9YVeiI4KpUDJOdKdtPODfixueOq0afoZS/ieBaPsCkeA2jgFXXliNBn9/r94Cm+rNfuYGi8mC6b/+rkg9yijN2UwlO7NWaFxdUIo6jIBI3IHTuSH2W80gkYQz6mieY4BprfXB7oRneaVim1VfHI5/uLLpsqlHGBojIricp8B4itnn89cwqd+BfYyfZzozazy+UpywJ0K8JmeDQ0Lo8Vk1YCZfJjlKotrLMYFPXd7zTXjdz3iQV+3RQIYYZtFcyHl9ESDD5lLx9nJRcdGLrlVVV+Vzs9TBlcWL3+jvltdI3IkRatdPgAfXTe/lrhY2aECNw5CoiKs0xh6yTF0vuueYGrxpdNLGV/TcEhjy4u+UqoO9jFX83OuR4pVEo7r9UA8SJCxGYCYoFdrX6ayAisEDvkWjKFOIL7Z7IHGn46NXFU51iYnQBO2JTUafvsPMsF97+ndrqj0f/ToydrqxrcwF29+E X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c158d73d-f968-4f23-1952-08dd313c6967 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 06:02:49.3931 (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: B1TIMPwYjd6dD+quS327qa8/KGUQjK13ahTLWEWJgcndQvcwaj8xe77MaL5qDFbjcisN3t8/M8m1EusYO+h2dw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4132 X-Rspamd-Queue-Id: 5EBEF12000E X-Stat-Signature: a5t1gzb1wid1kh9eau6996q9zsndbauh X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1736488972-210106 X-HE-Meta: U2FsdGVkX1/RR5hCw0aNkbTkbCmed+cH0Z702+CTV2chUj3phG31fIQ+W9dr/Dl6++2ErY8enE4lgb4+rC74UWONpnu2By2xiYejhfX5EPSHSN9hv7aBfCjJ06LuEZ0lcqL1Dr+zqjYBNB6amMbb6/DBhlwa7aBAgEuUdekcA7LGqWgepkMTAtu3AIiUTI7XXxwMUtf75iYejKeteaH3LVoFls37zielGiNQQFQPMziMZaAjIi0VUOB8Q8HnHhc6wZCfhvinIyfnaTs5ue/q5vYCTrgc+/2ljTvnE9tvVYbfCeCQekOsG3y8yWyU/bzR9ZFlbDIV+2dvG3hXxrPF0WChY93J02Dq8anDKCi1S/1TPrKq6JPZ0vCFzW3rk+DWZlvYMXjY178aeiZUHZzy0dag+dHqBZpX1RUzL8J9t6yxjutMzG3TvITVt+MXi+8FF1/a+tLodL537fqNf24aczLSXgWUr7zD62n4i2+rcJ/dJTxSMale9DoC6SKTEKDKTP6PbK5k4pzAesJdh8ZpNQk1UeeJ7IuEhhrA0s63Trwx/nRyE4AjJ+Py8+FqUonPxA4DTNhbbG6ldQeAE51C9AUProEv0H6eC0R2e8GJsGOPY5yDbW30cNrjL8vsJUYnvL5HKSJcktsud8euYHZzqtey/8dLRNDalFMXtdbSc7MJBIatv+Gcz/x42CpZhNdAszjMGF6MRv/6baYayojtFV5yPBFJBwUcKLjl1e0z5qAu8Ps1IWIze/fKRIEpn3LY8wKkveDzvb+G5CqtAAMw1pDgTwTegCYgypeeoYZjfcdATCowKrjzfMnnNvJHtIFIZElCOsWoK3MRDaTbkSPG3rPjJrt/Kz+MDMEEl1duU9Ohm8z8Lx625w86IW828nhwEDZ3XVSyYf/ML83lxCC7ZWNRe+r/OiHMgfiXnWgGqhM6C7YHJNIsdzFNfCVWIyNqI5iD2J56BMGNjpfR5E/ 2bJEhLT7 G2BlTADlgoqeBfpneZVlpbYMUcnj/TP2YOzQLtenzX7n4BtEAtahHHbsm5im11ypxzbOtA0IPSKWSydmt4ep8YAqPVdHPzfGrmeBnAyozYsXOwkotaSWbzQGeEJP3I5UFSUlsEwdkXPs8hsOuIAbvvQKX5HWbXeKk2Dd4PHmlFsa2hEuYzrWWY9wlebV4R9chyMguze+2FfKfICXh7bwegxZPHQrrfgAT8RY3N7+yUXPbA9Uc/uJ+vQLmekoZf17woWYM0VLj4wcT1/aGFQXfwDd4z3KcwjrrtdjBRG3wQngfkS1Z6QxuI5sbATVyoB6zhNpU4F3v3TPbjLVK0MTJi0Uxpw1gH1sOPeHXZIklXeU6++887IhZza2/OQsCVEzCUftPxhU5N2x/g/sEwHOES/4oy9SCaklBHf78Xng1aDnkTzMRQbHj7sXi4fzrFGWYlRSBZFAq4qecD0LnAhhzIs4SwhbTnp5He/QwsG0ogFsr9Pc= 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
|
diff --git a/include/linux/memremap.h b/include/linux/memremap.h index 0256a42..54e8b57 100644 --- a/include/linux/memremap.h +++ b/include/linux/memremap.h @@ -187,6 +187,28 @@ static inline bool folio_is_device_coherent(const struct folio *folio) return is_device_coherent_page(&folio->page); } +static inline bool is_fsdax_page(const struct page *page) +{ + return is_zone_device_page(page) && + page_pgmap(page)->type == MEMORY_DEVICE_FS_DAX; +} + +static inline bool folio_is_fsdax(const struct folio *folio) +{ + return is_fsdax_page(&folio->page); +} + +static inline bool is_devdax_page(const struct page *page) +{ + return is_zone_device_page(page) && + page_pgmap(page)->type == MEMORY_DEVICE_GENERIC; +} + +static inline bool folio_is_devdax(const struct folio *folio) +{ + return is_devdax_page(&folio->page); +} + #ifdef CONFIG_ZONE_DEVICE void zone_device_page_init(struct page *page); void *memremap_pages(struct dev_pagemap *pgmap, int nid);