From patchwork Thu Jun 6 18:26:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Brennan X-Patchwork-Id: 13688875 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 13CC9C27C54 for ; Thu, 6 Jun 2024 18:26:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6A7726B00AA; Thu, 6 Jun 2024 14:26:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 656B76B00AB; Thu, 6 Jun 2024 14:26:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4F7236B00AC; Thu, 6 Jun 2024 14:26:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 31AC76B00AA for ; Thu, 6 Jun 2024 14:26:44 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E3D871C291E for ; Thu, 6 Jun 2024 18:26:43 +0000 (UTC) X-FDA: 82201294686.22.FCCC283 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf10.hostedemail.com (Postfix) with ESMTP id 8B77EC000B for ; Thu, 6 Jun 2024 18:26:40 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=XOJVSsdk; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=a+faXysZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf10.hostedemail.com: domain of stephen.s.brennan@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=stephen.s.brennan@oracle.com; dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717698400; 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=J+A0OlQp5Gt0iuZq7n9cxUkA6iE0iKjcY+A5FHhTpNQ=; b=WHuqnvtxIME9nUWwb/XFwob1dgfQJRSfl98PwspADM1T4cRRp07hkPF+yLfznUfIe+WUoI ghVCkyLgXfjivEya2M5Yo/rC9kfNsiHbAhSoRRkpSBVoLDxxIXkKmVzR8Y+dYOKK8uTJZW 0COkA0J/ZFv9nd4KN5s6s/OlAUJSR/U= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717698400; a=rsa-sha256; cv=pass; b=rSKNu1XlCzulWab3u9XlCxuUcGXeIVfWwtNJztMuoDAtHwOOl/+y0M+vaXv0PN3QH0PfHq 2D8Oglg9rOGir/dODciQrmS8kxzYo0Qf8a/cQIK5GiMcSLweV58WV0wbC2pFla573t++Lx 8xr5Wmie5xkV62pbjRUB+3lI44AY3+s= ARC-Authentication-Results: i=2; imf10.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=XOJVSsdk; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=a+faXysZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf10.hostedemail.com: domain of stephen.s.brennan@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=stephen.s.brennan@oracle.com; dmarc=pass (policy=quarantine) header.from=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 456Hx8Pl029594; Thu, 6 Jun 2024 18:26:35 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=J+A0OlQp5Gt0iuZq7n9cxUkA6iE0iKjcY+A5FHhTpNQ=; b=XOJVSsdkswC6bXfVnz5j1AHdzJgQvrg/nDL6b+EYB2pV/phjFcybfHShjOCDbG7dohjJ J39S7A2XQQoh43ic40E08nstyDIsIkOopu1V7JYq5YhI4TOfsFBPQNnQuL0E67dLrW0O OkIXu9wA+LjqrgDRBVoZZcZAg7ZwmrsNLVIozFVSC/jO8nGGIdyAOiUErhWVPcNYdgU0 zd+N5uzD6pGinM/cWRtkwy6hvIefs3FdDhMYt0o6bfSFgomBRBE4h7YN7nj9jG8s2NtF UTyKy2+OMGEn8AzhvpSfdoyEFAF1F4Z225J6WmQyfFmyGTZI6xSTlZxMeeDfEgJcVOMa hA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjbtwc4re-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2024 18:26:34 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 456GuqXA020559; Thu, 6 Jun 2024 18:26:34 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2049.outbound.protection.outlook.com [104.47.55.49]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrj5hg0c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2024 18:26:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C9T1VfBRIrdIlfYCMpWgYTHQBo7tHyQkl5n89X2f38kH/7b2MpmSMl+f0Jaboy/Aqt9OKZrYOpY9Kt+rC/ES7AWRDYzQqHf7svwRAchhOzYQ71BDmSMEUjzZsGnJSMnXCZ+V3VoeqFzO+2MxJrn0xl2yFYcA2crnJ4kjNTXOAtbC+AkwupsnoBlgQyVJ5r7NQTZ9xDDJl+DuxcsFGuSSfY8agezDjqTUZsvnTxmdW6El2muCPXO4dO5u+Um3uN3tS3t+Fj7QC22Sy+WC7bFjuYo+ri+v1v3SV1TY+eUpiYeaPke6H3mTabMxGbQKZS/1kbLfTv8nrHIBdWkWQeqCeg== 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=J+A0OlQp5Gt0iuZq7n9cxUkA6iE0iKjcY+A5FHhTpNQ=; b=fAZvkp0lb4kv8yeZ0fSMYz6/13d3ePQxY1QYyUCfA3/nhZbHZFysmEntG9VPFjEFxSgLVDX6doXeUBnDBsFrkhN5zObp+gJZIAZnymiaQ4meEEpdKu/ghRdgqzvl7XSbdUTnf/No58afX6vrPZmB9XwU3hu8hRku1p+dZwnuzW+PZqpr9DohqiZKnFHG0Cf/AElquXZf7141auZP1pFynxmxgccyiwZd7JD9m5YcG8HpR/FKNvD6sHP32aKkDaApjBkojWRYjFEm207Jen7Shp2w5fYBeI1Do3yTyR+SAvQwmh6/0mV/qPyTFXOpkeFIANPX2zyn2v/VzmOwBUqmPg== 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=J+A0OlQp5Gt0iuZq7n9cxUkA6iE0iKjcY+A5FHhTpNQ=; b=a+faXysZjHKP6sfEaVCQdz6xubcPtwquahAecMWLxpW7jpfhIxIoYnliZt2+gzH+P3OAcO65Dv/aOb02XOnmPInjpYv+nuXINS8O1W/WnKsCXLvjNr1d0JQ8d3OXMcUjG3njg78pFUQGeM+rTUPnm/HF5h46UwKDRbqLhk2uZXA= Received: from PH8PR10MB6597.namprd10.prod.outlook.com (2603:10b6:510:226::20) by PH7PR10MB6377.namprd10.prod.outlook.com (2603:10b6:510:1a7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 18:26:31 +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; Thu, 6 Jun 2024 18:26:31 +0000 From: Stephen Brennan To: Andrew Morton Cc: Stephen Brennan , Omar Sandoval , Hao Ge , David Hildenbrand , Vlastimil Babka , linux-kernel@vger.kernel.org, "Vishal Moola (Oracle)" , linux-mm@kvack.org, linux-debuggers@vger.kernel.org, "Matthew Wilcox (Oracle)" Subject: [PATCH v2] mm: convert page type macros to enum Date: Thu, 6 Jun 2024 11:26:29 -0700 Message-ID: <20240606182630.851750-1-stephen.s.brennan@oracle.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: BYAPR03CA0029.namprd03.prod.outlook.com (2603:10b6:a02:a8::42) To PH8PR10MB6597.namprd10.prod.outlook.com (2603:10b6:510:226::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR10MB6597:EE_|PH7PR10MB6377:EE_ X-MS-Office365-Filtering-Correlation-Id: 06ea7795-6b30-4ccc-eba0-08dc8656302d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|7416005|376005|366007; X-Microsoft-Antispam-Message-Info: HpwGjfkHxmtgJWUSRiTfOnpsh3ECqkYJqYuGr8Xb/OFTMbtOu8DPp+41gtF1bQzZMFbV4uVSurAWSEJJG2EGEl/cEClbd30+EAHFE24iGcEnQk8TqeYffVJiyXX7Bv9NVPB7goNk9udQ2dAXh0YPMjqsizqlgM4YfR4/EzCeW6hbnJo6CMp7HhWqZB97qAVCxKa2C5TdJXTixz1eaJqqBFkOXEVTkfOFyxr+3D1Gbz8Z8YIbTXopCq1FvXG+Np+dntG+1mxfSS/3DzcjtzbjjsrF7iZRgKzyVodgTVi1ducpxeL46wtGeOq0OB8sJ8r9Ia1YsM0DE/TbzxJ1IeuGk2JUTjPvF9UL4+3pMIci16m9UWJv9MjKj+jPh1uCLTw5gVH+T8mFvPEIfrgiKWrTkIub7TUDKCrYVzkDEEKROdFQBvV5rGtrkwmp2NKkcr1aXTphcpgKhPF2h/gKsWNdckpTeLfGzCJLQf/qlZHg6SNO0tqDNx2DysPDWC6SbQ/sojWAaeBnU0//a6lZFQ0nVifHOfWIxLO5hg+MGknr31mHtZ16MR9zNq2xnnefyrtoH2lTf2XYg05RTklAs730GpZld+HuSpsmIS+dz+Lu3M/6kAHKWAT6ea6mB/ax6OKr/HgFHPQwgoJg7XmkpRlz1HJV13DPQfi4nar2jUrEHo81Wj31EmV8thzwRjsUBX+Ck5jwDyDHoYPWupgzy+wM/p1fVO+bQpfmnbhqKvXDXVxPUbz8tl/5LRJMEEF/7iJ2nv/BNEJUklFjBFPZJ7SI1ALRsAOyTQrgM+AqVR62ovuqf1VKh+KmN7RZoIxGUJQ6YibswdaLfla9qGve/X3GDdhMqTSGHn/URhWIiI67xa8YWH5Pk9+XD5edsq1TBOYWaCQa0iK4xUKBXctXvAIo4ibKDPsQ+9+oIodBYAXxzsNGShrKJT2nzj5JtMPOYoZpgpJcIMUGjV2XEmTc5zNjKbXxblNUxHgjV03SoXvWGQmPd3l9f1lu2J/tyu2aXpWThp2hEoNpTTJoH21bcGeiL4c+ikm7A+20P2O4A1LVEZK5Yh7cp6m9IoTIypSBUAYACoe/4JRvHr5yf9HGGDOSvPvPpjDBg4eohADr0H9EbILG5ywq6fERdioTC3xsQqS9e/Xsw0Ecbau9SRL+lmziXucOCR+caI/f262oIJZvDDCMivQTjZFdOmsjXXXYYNwGnmvpROb+G01iEGeDqi7vivV1hSx8HY1d/7FntxprV01zfzQm2smonCh2HZbhbJHwI5VCa3E9eB2pVuS07dJfQI/Lqt1dslgLTY8ClNjYuu2+v3Tzeh3dcDl+RopM1pO/ 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)(7416005)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rA5wtCEDWMO0K7YJTZiMyCCuowJLuyYyRZw8S52BWuVmHR2/xao/k+a3i43Wo/Ot6jTb/mOkK6p3EunASEHFyC3REMc7OF9nM197XyUdXhFEGM6VermPfLxRZEtZj7oWemsaXrPTmMv6R2V44FQIx7B6rOfdUM3c5+ZxSUv+B25nrD7ijJCaFES8iG3FT3smVhRPGSNwbWULGbnPzpAVmlVDI+8lOwcdnbE7C2Ijb9k8uR+a1vWAmIakagw+gzfWrwWRMYsxYZySG6PN5uu4UdVxSdbzyGUqLhJ75QReV0OUJa5UpZX2LCdxKT2DSO+ILpSojHvi9JTKD0woyn3fk0ULEcuViP42Si+h91pfHcrhlJ3Xs7V039JiemozaHd/2+UTmuA7gnMfoyL6RCznN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fwHwabqA+flqUfbdIKyez/fFWOH+/QrF7eRPGvl8VRKugq5FHrHVJxueKk9GN6EtjcJHIQ+PloDMVudell0KIT+hy/Gn1/3f2rdgT48KCsdVdly2vh71rIvheJ9viMFk/vVyNxqx/C2aSnoys0K9YosIj155hPhMl3H1oy+odZqMiakPgsCBHkk8GYjhfeGeXrPsZZQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: c6UJDxgNnRCwbG0qrVuCLZjj89Isl5saZ8Q2Ml+jFo+VFapc3/wKlA1KhblZIUW2DWbVpUnHuZEg0tFoSQxpE8iGlE4NKuLt+F6colZkjT6Lkc60/ydP86zSatuhLRY2gRBf7uP21d0ARpWLjSzRjn0afG5/89fWXUzm1GjBr5jonkXJp4RzY2XOSRc+bLsib6/S8h+dAMmTMUtDnhJaJxVhAqJg1MbkgnM1Vk/aIpNHP5DutPCWej76jc1kF+eDpyWGmMxyhTMaEFGWRDNnDJ6Jzxmh76W+PYrq5BwsWb2BaLbA8uS8KneL/BciCEWTnt3wmyIvdJoBsNyV58Cj7CzGbIWv6PvgYSI0RkX9C6id+a61g7KjMIV7uabaonqiVh8uaQeKX3RfKt5huxOQTJzH6I7dI5mafiVdVw65CZpQJBcfUbgFw8HBfLj2L94uHWKAU1hwMKLiCeHN+MJG4A0rLBFZWhQL2qP4X2vqREZ0ffVOvVRxOjODy6mM7jgWWUBTRIfCNGOrp0i+rCCLuAeZxgAtmyH3AUQwtX38v5yUFlmIx3b2slwspYGg6zYdidKTnJsYe/alhwnddd6gKipRAUem0q+mCOyTKEkdklw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06ea7795-6b30-4ccc-eba0-08dc8656302d X-MS-Exchange-CrossTenant-AuthSource: PH8PR10MB6597.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 18:26:31.4465 (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: 7x5MQRVNL+WHCeRVCRst6NBX/lRS4/iTrWyclRxIiX4/CUDIstAzyaoDvz4U/YEUWOyxbctFR+58YT75a0ZD0R5FAQLB5YXBdUtZJny1Zxw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6377 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_14,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 bulkscore=0 adultscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406060128 X-Proofpoint-GUID: rMQd8P1Sj1RAKIIUlpl36nBqcCYutOml X-Proofpoint-ORIG-GUID: rMQd8P1Sj1RAKIIUlpl36nBqcCYutOml X-Rspam-User: X-Stat-Signature: 5ao81z9rpnker1qw8hucnfhgk7o78mj1 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 8B77EC000B X-HE-Tag: 1717698400-704275 X-HE-Meta: U2FsdGVkX1+MIZFmf7uXjmI3aFLQYCHDkvFVhPMfE9N4QTjLIWJiLrp6SnCTnc+lTg1T4Cfpoy3rBpwF14OAXuBQPhoDh7FPHiF/VhBmNfe55O3Kjc1waA+oGUUVz3AwNaNUOGzRwJ9HjWEBpnkzN4neCIpzD5BjZhWuZMbYSqvfv3wyR7gzcAuNv634SQKh1CvPqr8Gus6OqHhLnNefmXeKyaOhf5IHouI4vJc0FcYsqOTKCdJJnbC6nERJ2HkYDSyE0vzaZLJmDPCnXTe/TQ4+/OnKZnt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agvM4zIDy2ya/9D+Soni3IOa7JNjvwGr8q/0OOJ6H0KY+3j61ihicYpSbeeNKjRzNArXQzMVpfwWc2GlnZID+hZO0g7bA1QlM1SPYRv013ZOINJG8mA== 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 --- v1 -> v2: include PAGE_TYPE_BASE and PAGE_MAPCOUNT_RESERVE include/linux/page-flags.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 104078afe0b16..74ffdacd3a134 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -944,15 +944,19 @@ PAGEFLAG_FALSE(HasHWPoisoned, has_hwpoisoned) * mistaken for a page type value. */ -#define PAGE_TYPE_BASE 0xf0000000 -/* Reserve 0x0000007f to catch underflows of _mapcount */ -#define PAGE_MAPCOUNT_RESERVE -128 -#define PG_buddy 0x00000080 -#define PG_offline 0x00000100 -#define PG_table 0x00000200 -#define PG_guard 0x00000400 -#define PG_hugetlb 0x00000800 -#define PG_slab 0x00001000 +enum page_type { + PG_buddy = 0x00000080, + PG_offline = 0x00000100, + PG_table = 0x00000200, + PG_guard = 0x00000400, + PG_hugetlb = 0x00000800, + PG_slab = 0x00001000, + + PAGE_TYPE_BASE = 0xf0000000, + + /* Reserve 0x0000007f to catch underflows of _mapcount */ + PAGE_MAPCOUNT_RESERVE = -128, +}; #define PageType(page, flag) \ ((page->page_type & (PAGE_TYPE_BASE | flag)) == PAGE_TYPE_BASE)