From patchwork Fri Jun 7 00:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Brennan X-Patchwork-Id: 13689072 Return-Path: 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 0F41EC27C52 for ; Fri, 7 Jun 2024 00:11:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C0C46B00A4; Thu, 6 Jun 2024 20:11:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8711A6B00A5; Thu, 6 Jun 2024 20:11:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6C47C6B00A6; Thu, 6 Jun 2024 20:11:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4F2016B00A4 for ; Thu, 6 Jun 2024 20:11:29 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9E328C036A for ; Fri, 7 Jun 2024 00:11:28 +0000 (UTC) X-FDA: 82202163456.26.67B66C9 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf03.hostedemail.com (Postfix) with ESMTP id 6A8E920004 for ; Fri, 7 Jun 2024 00:11:25 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=BS62xYD9; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=CyCoQPLa; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=quarantine) header.from=oracle.com; spf=pass (imf03.hostedemail.com: domain of stephen.s.brennan@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=stephen.s.brennan@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717719085; 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: references:dkim-signature; bh=OrRMMMTiCyuXhBFNHQHvtoJwOGIE1b56AtbkiGT97mo=; b=xfpU57dDF49C7TPV+jle2gSvremZUjcrmQwe9qIuHGDn4PkVPTbIJTxS/IJgPiU8a4IGpR 8toT97UuYqR5JZzjs23iDUQ1k+00UQEIbFd7PUYTNhCHfJSx/aTH/M2NUSZW1YIWwShFEM MqM1iGZ9nNE7eaOTf/95VaXoprpJrxs= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717719085; a=rsa-sha256; cv=pass; b=tXM5jIXn5gjdG7XsaAJSWQHaQeN1QzgHoGxvOPsN3IfyHN375f8u6e9h+Ei+UyO3A1rP0q 9f8bc45Ae6cVI6qKfb8gfNP6kQ5sLuJdPS4K14/fAczKm9zI82OZ/kcI9V9vRpCwdpTqZy 5VBpWRONvFaZcjKti8RijNSwuk/qnQI= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=BS62xYD9; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=CyCoQPLa; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=quarantine) header.from=oracle.com; spf=pass (imf03.hostedemail.com: domain of stephen.s.brennan@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=stephen.s.brennan@oracle.com 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 456HxRvn022310; Fri, 7 Jun 2024 00:11:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc : content-transfer-encoding : content-type : date : from : message-id : mime-version : subject : to; s=corp-2023-11-20; bh=OrRMMMTiCyuXhBFNHQHvtoJwOGIE1b56AtbkiGT97mo=; b=BS62xYD9yRyjFyTGfg4HRXtVrwpZNrmbPg6S8VZ6YlH1UenTs9qnxIej3tmo/XE+GpzN WneAuaI6QjTMgEveJiGRWw6MnKs4mvp+Y70a0mwCUlruBtbDUYyL4wkhNGZavsx3O1oD F/PcwyOtd8vRLgDBrsqS8JP1w/iqCSJhDHLtTRt3zLOemoK/N78deTb6Ed1TDEmzQKkP M80JxEINvfHOoAcRIyh0a23GK2EHl9OMs51I9PjyfAa0s/C7AOQkA8ApnDnqtSAcDatj lbgPJZhzyq+/bXiSyu4IDaEno4Ry/glgNvkNaH1dcmM4ERXKdRAHAh+ji+n8uKpmA1tX qg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjvwd2mqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 00:11:21 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 45709M79016225; Fri, 7 Jun 2024 00:11:20 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrsdtavh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 00:11:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AdO5TWxQ3fLE7V2IUmWiCVJr+kwBfuFpkQYwi2WQRz9bK1Wuud3U6zrBqb4QbwmroxCc9gDfD5B5lMwpuGBKaOU5RViGWUhJ1Sc7PDyiBRYqR0Gx2Y/nllATMcvW+b8mw9Pvrn/afeGcuYwuSsJ6yYL37Rr7TwuhPyPZnbAnzzDHWkk9cRmDrxyYGupwsfg0UhyFHhHrm61MEGwmVXCWCHJ3GE/ciIOZWljnH8kJpxmG8tjduxdFR0pTT3aPwa5GjexTq9hyI80zG7glKbUrccXdkldmahFGZNEGvIRM4XOjUIryFLbQddhYnmn0/H3RUVqg3GjxFNt01fCFwG4eDg== 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=OrRMMMTiCyuXhBFNHQHvtoJwOGIE1b56AtbkiGT97mo=; b=Rvc/EwwbR/dQmoyaH0BY6be76rJIrBWzEBv+Xp1/Pnc+jpCjcsr74L4FgTt9Gx6LDY5nuzZi24AafNo6mE83J7bg3q/crXu/C41x7stC7mda3nYpAXcM0Kj7ZZoZknKGhPxxLbjMe128alD+1ItJTNMbE+9nBhejgHJ81tXlg8BN/ieRDIo7PWzuMDaR4JPOlTBI4oS3nKQgZXhDrAR5dVRUPDY4To0wA/3mG5cLDranNhhTGb0Zu5s9PWdVajdcTakfolUBI7y4FA18Izd5jfQWYSN2+BJP11rJ/XaJd9HZtNTN4TAjBNuVMr+HyFHll+8ZyiagSzrrpVRVYWGbhQ== 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=OrRMMMTiCyuXhBFNHQHvtoJwOGIE1b56AtbkiGT97mo=; b=CyCoQPLaY6CIJBWJfL5497g5Tkv9ibLDcAIV4xgoehc8EiAhuzXZJMNEr1m6DvTcdM/FDiEG61rzFtxPyNQA7mFrT8vSxFKfVqhJZjN7B+QvegTQo7hMlX9UubqA0LSsl1dWs3FwnVwBtrFfL1HWzl1/3ugGyUeBTxV4ChDU4kk= Received: from PH8PR10MB6597.namprd10.prod.outlook.com (2603:10b6:510:226::20) by PH7PR10MB5830.namprd10.prod.outlook.com (2603:10b6:510:127::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.24; Fri, 7 Jun 2024 00:11:18 +0000 Received: from PH8PR10MB6597.namprd10.prod.outlook.com ([fe80::6874:4af6:bf0a:6ca]) by PH8PR10MB6597.namprd10.prod.outlook.com ([fe80::6874:4af6:bf0a:6ca%3]) with mapi id 15.20.7611.030; Fri, 7 Jun 2024 00:11:18 +0000 From: Stephen Brennan To: Andrew Morton Cc: "Vishal Moola (Oracle)" , linux-mm@kvack.org, Omar Sandoval , linux-debuggers@vger.kernel.org, "Matthew Wilcox (Oracle)" , Stephen Brennan , David Hildenbrand , linux-kernel@vger.kernel.org, Hao Ge , Vlastimil Babka Subject: [PATCH v3] mm: convert page type macros to enum Date: Thu, 6 Jun 2024 17:11:15 -0700 Message-ID: <20240607001116.1061485-1-stephen.s.brennan@oracle.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: BYAPR08CA0041.namprd08.prod.outlook.com (2603:10b6:a03:117::18) To PH8PR10MB6597.namprd10.prod.outlook.com (2603:10b6:510:226::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR10MB6597:EE_|PH7PR10MB5830:EE_ X-MS-Office365-Filtering-Correlation-Id: a953707b-ba86-4dbf-6573-08dc86865a5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|7416005|366007; X-Microsoft-Antispam-Message-Info: rxorFB5LdZJQqXlHbVRW4t4zwc+qCQKabBl9p59gnB7lvRWQaGYNV6x3twJsKpHXrbpuF6MDwHQXQPgGjLScFo8NiUY00nBoYVkRKXxjh+yadPnCFmu6HBQYmOH0U9R6lFV5HYWBa8eYGG0vill9Ft9KYvWiLGXSp2kl6eY+9HSBINg4UrhC3aIZWr4EouUHz5ulM278F6rCPWiRqqF+j2G7nrGDQ5MTCqHsWK3L7SyVK6317aZ6vw4SkJGJXAHUJ2l+dn1lL7sRkU9PGp980F5QZlDZaOivTLOWydM+9VSUZz/gADckTJCDhxdTCoaBeGqBvaePpsocYVXnELKeFuPdGDOpFVl6TG9lXADG5xYOXw+2jdpQZJAThohVrmT6TvO46EpEMNDNSTtctO6xXp+UDkAcVluqns93aQxS9NEE2tkDCR0ypdMsWLUlReQjiQ3iHNSbLP8ZD8qINLm4RWXKLaIGzN2ZkyHQat3UANRx/xQDDQyvkq0Eril6qgedMuhyH3mtEFhRRKsof3Q6gFEZzsV0U1R4oPQsClH7Z7Ch6Shs5e6i//5liObw6h+ziu5k2hO29031kJ0hsB4x6WqFKpt7eWg81WMF1hLi0nIeTlCOee65Z5lOkz2dt++eblZryXb69afnrYhUTBzS9Qn52WB45SpfPDFjCTkd9v1glleUKqATJZ2RvpbgzKzRLwL4MuS/te3n4j1f1xO5ILpDjow2tyg4uNcqcJB+9UHmlLoxICAOigLCXatjtUxBq7AvqdfuNzDkpUcTdJb3QVeqQ61Yk7Udbq5IWeG222E/xGdOd67oMJdARo/n6SciMJ1JNISt3z+5M2VOMmwXTJQmRK/cswabTS6cx35COnU5l6Ymgod8+qcjwYon21k7Edm0QdyHuOURePklL93nofSm1ELFK81FXcY+N6yISE9G9EimVW1+Jhjs0tuWNL7TuDllLNFiXxSWe5EsJ4sUEEc3VaFcjs8nUxepSKhUNWApKVxbzNp4G99wccbzBg1vtzUEmB0AU3pog1lniuS0lAP0M26oxJYY9G7F4lcOaPalp7tcrEyCTmlDKC+v4tCq9dRmfGTIRvkA9jLfERshc1AK2uG3maFacxmXWHr1S+RkQi8VrbaG5hVwFBTosvNztUEEmjLt8K1uloeQvOK+XEf/mH7v3IAxFA2JRxM7LFWNAIPIKLhtrWj99PKzpGkfxWzlUdpBiaOGa3mXjNPAUJSGAWEziicxWRxW9sBKAjG635ckEuXOkdTVmq6P8fHyP6t3OJYN8xf90B33pDxT3Q1uEHDs+X3eXnxbrqHyq6+eRwyTqOLaxTyKhMBIg5W4 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR10MB6597.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(7416005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: I3cDBm5S8msK58UjG0D1naqNwiTOJsqmpkcibo7CkkS7StNOhnFij2X5z9+/EizqAV/thCDg+iRLtDY1db6nHjonXNS/RNmhgmJzKusLblhhzQIKY4jIL9hXD+7b/sIoDk+U4t9kAS6xd7JY+Z23AnypVlL4sSkfJ/0fJSUMnOTSKCVkhdGCA0F6lQo3O+cTiaBtvo+XjQbkEUEDKrEoeuW0FfzemwrWATcZ3gdwVv5ZfkN5M9fOJYX22Et7V2pKVbpII7bt7fsMgEUxDUifVOaE8z1N4XtBiGmTCGr/3zEGB454zL5YEddT7JlRPjeDQmsOyZqxoXOle8/SJl6o0H0dCXfh8ASpIKXZBgHMwwrdjMwd6SZuFhNMtfpBDwUILhCIiBXGfj3DSDT5plyML8DyjSIO7ECouxyIe2z1TicKxFjysYblGO7iDAh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PN4GzJfih+LGfGRqCDg3dcneh2nLy9/s34pKnxATqN26d00UWZ2vS3WVKOj7gm+8xykgALZRWpzBXVqEJ2YQp4hcD0pGY1wDG6yfxetqcvG5nH21xmhObmtQnI6252XilvpM3/pFB/xi3jmClQnE2ZdZuKLiQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 5pSMOHlKXiovyHT4vgBHTre4kreleSjglQn0V/uTboR+zKvOBRRyOnMdyMuK2Dxtcz5nhtJ1dRcarTj8LuXrHOcHpTSv13HJlwLj0lQbrZffaHPg4PhaKQuYkZrVATiL7oEOKfMQ54V4jGVCRJ/wTdYLnvy7dx2qVAyaISYLndRlmurYzzAEt888hRyVZXsIsgmCKNs8tOYuAQko4EJLFiGk17s9JArnDalqdhQTXDNfbxV7SaDLSffSdgvcALkFJ6qlnqFH0EBX4yBqha1fsxFhLImyySZqy1r7STWgy1lrw+mdGnV3X+4shnV4g+a394w/8HQscb8s6NV9gNur35PZ1lExMIiG13gXFcBq6wrIIeA4uRBvOw98tVfr+e6jxxY0VuOklZepwGMe/tdjrfzfEhSfuP1GI64OSCUjq4Gm13JaNixING8J5kHjb3Xe0ME1ELk2Zx82N7V9aUr8uy+5vA/X+zj848IuJguDL0YYSfuALLMzP2zEzsb8km6clx+0Tnusdpxw4ITU7d+h4Q342S+gQdYPaNnDp7vt21W65xYnzch8UIqKdveh1qhgGcJv4SlsNAM1H38aUxAKI994jqixi5sKCZ9tsnAJStA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a953707b-ba86-4dbf-6573-08dc86865a5a X-MS-Exchange-CrossTenant-AuthSource: PH8PR10MB6597.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 00:11:18.0448 (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: EN150q6ToYnP4eeZF3Xq1nv4yhw1Kvjd7rFvlUo0L/rIXb/4kuRkC8vLJya6OuvAaHyxeUDQo+2GZ/Fd6496EjHE7ThHtNOJfzgpP/DfE+4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB5830 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-06_19,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406060168 X-Proofpoint-ORIG-GUID: IpfZ7y8xIy1SgUmqZGr8ehY5oNx9UMlo X-Proofpoint-GUID: IpfZ7y8xIy1SgUmqZGr8ehY5oNx9UMlo X-Stat-Signature: fq9pmfuacu8hii9bmy9ug56joe5dcasi X-Rspamd-Queue-Id: 6A8E920004 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1717719085-721817 X-HE-Meta: U2FsdGVkX18kDwtGCYukyXmC5bANMjYF81YiaQd1n6tAlp8Pqpt5kIElsxcSGroe8rA/22xmhi9nV7q1tD7EAHakgv0DcgOnqmYF1UTSPbs1m666tLW9cWO3q0kEsvgLYqnWP+AygPNAdTbIHRVIp+QSQHIg5WqQoxTalFU5K2nLHnVD+0gHZYGxUHr47uq2YVWyca+dXxCByXEUIw+/zcsjrLBmkoLyZ9ew51NpXP0C5BT+jK6vQv9BX/Qbk7OZjcyIBrTbrdGjGV5r7PaQMVkkOnTTLmLQuee7tHvEC3mkfkfEt2b5R3Fn7i5/HGm26Cbwz/ZWAA80X3ZJINhRFH9G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AQz0IppIF022/fevJ4KKj3Ed5UCU4MwrU+oF2hM4RG90VcPskZuI9bOMEHSU63g== 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: List-Subscribe: List-Unsubscribe: Changing PG_slab from a page flag to a page type in commit 46df8e73a4a3 ("mm: free up PG_slab") in has the unintended consequence of removing the PG_slab constant from kernel debuginfo. The commit does add the value to the vmcoreinfo note, which allows debuggers to find the value without hardcoding it. However it's most flexible to continue representing the constant with an enum. To that end, convert the page type fields into an enum. Debuggers will now be able to detect that PG_slab's type has changed from enum pageflags to enum page_type. Fixes: 46df8e73a4a3 ("mm: free up PG_slab") Signed-off-by: Stephen Brennan Acked-by: Vlastimil Babka --- v2 -> v3: rebase on mm-unstable v1 -> v2: include PAGE_TYPE_BASE and PAGE_MAPCOUNT_RESERVE include/linux/page-flags.h | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index f04fea86324d9..7c0a8fd2c8c17 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -945,20 +945,23 @@ PAGEFLAG_FALSE(HasHWPoisoned, has_hwpoisoned) * mistaken for a page type value. */ -#define PAGE_TYPE_BASE 0x80000000 -/* - * Reserve 0xffff0000 - 0xfffffffe to catch _mapcount underflows and - * allow owners that set a type to reuse the lower 16 bit for their own - * purposes. - */ -#define PG_buddy 0x40000000 -#define PG_offline 0x20000000 -#define PG_table 0x10000000 -#define PG_guard 0x08000000 -#define PG_hugetlb 0x04000000 -#define PG_slab 0x02000000 -#define PG_zsmalloc 0x01000000 -#define PAGE_MAPCOUNT_RESERVE (~0x0000ffff) +enum page_type { + /* + * Reserve 0xffff0000 - 0xfffffffe to catch _mapcount underflows and + * allow owners that set a type to reuse the lower 16 bit for their own + * purposes. + */ + PG_buddy = 0x40000000, + PG_offline = 0x20000000, + PG_table = 0x10000000, + PG_guard = 0x08000000, + PG_hugetlb = 0x04000000, + PG_slab = 0x02000000, + PG_zsmalloc = 0x01000000, + + PAGE_TYPE_BASE = 0x80000000, + PAGE_MAPCOUNT_RESERVE = ~0x0000ffff, +}; #define PageType(page, flag) \ ((page->page_type & (PAGE_TYPE_BASE | flag)) == PAGE_TYPE_BASE)