From patchwork Thu Jun 6 17:25: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: 13688832 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 6E70EC27C54 for ; Thu, 6 Jun 2024 17:25:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 088E46B00AD; Thu, 6 Jun 2024 13:25:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 038276B00AE; Thu, 6 Jun 2024 13:25:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DF3BF6B00AF; Thu, 6 Jun 2024 13:25:50 -0400 (EDT) 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 C1D3C6B00AD for ; Thu, 6 Jun 2024 13:25:50 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 672F7A252A for ; Thu, 6 Jun 2024 17:25:50 +0000 (UTC) X-FDA: 82201141260.18.61E63A5 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf17.hostedemail.com (Postfix) with ESMTP id 1EB6040012 for ; Thu, 6 Jun 2024 17:25:45 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="lWjum/h2"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=w44Jxo0y; dmarc=pass (policy=quarantine) header.from=oracle.com; spf=pass (imf17.hostedemail.com: domain of stephen.s.brennan@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=stephen.s.brennan@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717694746; 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=PDRHWDWsU3RfNWo4T3VVzNkzoEgDCPG61J2G/s6SWCg=; b=Rv8KfGQ+UxhfxLRJRlcRVSSKN81aU0m6zqxyP3WOvPy+kyiYyiQ5TKIZ6eT4ipvSHPh+Et 4vYiKJTA/7uZE8uBurl20XhcduVLEAJu4lEO42ndWUwrwWdbr+emqLFYcd6E/MZ4b5i6OA My3K2Y5k1hT1ivqlYwlTQ1RxQc3dPz8= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="lWjum/h2"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=w44Jxo0y; dmarc=pass (policy=quarantine) header.from=oracle.com; spf=pass (imf17.hostedemail.com: domain of stephen.s.brennan@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=stephen.s.brennan@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717694746; a=rsa-sha256; cv=pass; b=lRNYExjz9jn1oeI/FLnVtL5opMzaYtLKll+BOzupbR6J+n2xajunS49pHSQzi0OL2jAoSl LTu9nSA4tOg7gwm/CF9l+2h+k7IOjFlWwnTgrjjT+xSisb6biuQRechgOnVrFRL0jae5UE 9j0yPr3uFDdkM3kk4QwC3pcjSicqPSI= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 456HOrpY007419; Thu, 6 Jun 2024 17:25:36 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=PDRHWDWsU3RfNWo4T3VVzNkzoEgDCPG61J2G/s6SWCg=; b=lWjum/h2WcpJiNZ3kM6i+S/cTdU0NQOgQNvERHnQbQl83bxi7VBSyinFtUXPM/B4/XE5 vC9+vJM6Y8HrIXcLTTQNzPqwfedulAuaoHryF4t9Xi3ZZbu3DJON0J3XXyGWthzX7phN RA9exES3wpFnkrsBn6cBB2dxGQRVNTSxAQNqv/2Taz1NedOYKCesZmBCBfUJvTT/PaiY waPfGxRsXTES2PBWC60klWDNkcBLOZKyC1Dr6jwAHcDJHt46lAiuqZZjMY6V4WbJnLpp ufrn6yQ4zLwxjXaR05APRwfYtpVdkG2zmDKMHqGc/ct17vEonmCRpyUb6wqLjIk2ylQq 6A== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjbsyc1k4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2024 17:25:36 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 456H8xIp023967; Thu, 6 Jun 2024 17:25:34 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrr15epk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2024 17:25:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ljh28c/4dobJBzIjLIvPysFx01PheYUpgPp8ty+Df/npQILjRs+TZQk2d2pj/0vllZyxXQeoyVCSMK8IDOvaSVv5/Tm0sWA8t7dcOvNGgYbAoCZOc2E1MoGkBrHYJSWMm32i5wHz1WWUl9t3yGh1Uj/LOJmTHj1wNwRIAqSLvFCeMJNG67AjCGiim3tfeAhOQ+HAHFm0C0lKYyKrDqY8C9TkcQVWQFcoDsMNN35OjX/Tyb/wZdR9kqSZJu+Btj3+ekFzhDA1gEkDC6Z+wsBakR8yRbVWcxHC8/+camWY4VU0GoQ+GmJbr9Az1k0EovELAYcUTVtDT0HVu1a/kTPzcA== 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=PDRHWDWsU3RfNWo4T3VVzNkzoEgDCPG61J2G/s6SWCg=; b=F7YfntE7PB+ZL2KJP64zeyMuk5WLBT3vYkZ1nGudCWvP8VSceD6opZHD+zWiIPBhPWLk0SJs43stYNEYFwzqQ8yrkSEDBx3k3pmlD/GsfcB8hQvtN8KKrnIsHx2DO1ExIx9pa/TVBiv+9FE82Rn+pGB54n0okGDO4DgtgGlsW3Jw+yA7NOdCwv1yf/R/elumYCVWdEbcWmQSCl03D6MNmvD5+bgyI0W6tdY2sAxI7CX2wHAXJbtbPnkWcdTfjAhlHLEmg/D9yY33dS0gldlgyjNWx79z87UL/xtfkPeFvvdUlSyjZoLu+3TLcHhFOp5PhJT8yqFKvE/693Izc4d0Rw== 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=PDRHWDWsU3RfNWo4T3VVzNkzoEgDCPG61J2G/s6SWCg=; b=w44Jxo0yL9a8VBZ3UCvO+ajefkiFCx2tkPYaDFOa7NUP2y1yHKI66Lr4YsBKYhCEOXhHMWwFy7k1ejNEiPGI9jbivZWJ0A18Mz+zK8Rlp812ymERI/ZSiDr1s26NjlwhTfRwHtHid2DaDCHl8UrWtJ5rFdUg+P+0Cvd1mv1jVqg= Received: from PH8PR10MB6597.namprd10.prod.outlook.com (2603:10b6:510:226::20) by IA1PR10MB5898.namprd10.prod.outlook.com (2603:10b6:208:3d6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Thu, 6 Jun 2024 17:25:32 +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 17:25:32 +0000 From: Stephen Brennan To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Stephen Brennan , David Hildenbrand , Hao Ge , Vlastimil Babka , "Vishal Moola (Oracle)" , "Matthew Wilcox (Oracle)" , Omar Sandoval Subject: [PATCH] mm: convert page type macros to enum Date: Thu, 6 Jun 2024 10:25:29 -0700 Message-ID: <20240606172530.829790-1-stephen.s.brennan@oracle.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: SJ0PR05CA0066.namprd05.prod.outlook.com (2603:10b6:a03:332::11) To PH8PR10MB6597.namprd10.prod.outlook.com (2603:10b6:510:226::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR10MB6597:EE_|IA1PR10MB5898:EE_ X-MS-Office365-Filtering-Correlation-Id: 2511f38e-7ff7-4e78-e3e1-08dc864dab35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: JcjinOg86KCuwW94r3+98CE8ug6ohXL0p/NX4bt89HpjGiZDTyxyyoexYoWgzJSuFFp6Trzyi7YAVTgDLEeVznk5aA/dicCg7fpLaJ7tLhxKqS3wlJLax2FJEt7d3DiccCBnuLN8e/my/Rp0ImL15UXrjNG9LAr87uzgSwrglqO7r1FGoBPn8iUy02SRAmYFcancv3aEZ/NuuTlsg96915QWT1c6/6fnZgExOVlNW6e85QhtiJnL01g6e1Iopya4zW2G43QU70hK008NYp9QlfJ+jIu2+okhv/pJWs4xQuttOxJs7jp3cE4KTjR0XTLTLY/3Dwh3jOnqyidIQBaZHbMKdr+NjQOQFA2rZzpxQAL2uFFS+Iv9t7dG7wESePDZ6FZ7Lb/HyJUXx72GiQkK4ssOS5hgcHJufjrp5KVfTWsZM02zYUTjQvcsvnq3gBXILSaxykFYlb1QRpDOBMFDu1Ip1jHSvZfwuROfssWZI60dO4vjUde785IyUrHmbXb33/RPI9OVieKOr+uvUfifZm0rzm57tGrFY5U9GzLKqEe54mK6oYu0AQ+U92RzKdZOz/KTVP0vE607RhFADYubBFuRuADbK5illBr/1UrnIsJvKzjkpKOVAXJIPmkeqIPI6qsjBzus/MtlqTFY5qpfq5SI/NIzgMWdkpp8p/h6i0b9mPSICtrnsG9JEZWQM34upo3rYHWs2TSfJCWPvooHxsNuqkfkBdQneiUqgEfRhnfubFUmmePd3ucaA9b/IHDHi1HlcExo6hk2iiAtS6nb8yDmINjiiNEz8rg+9xMi03//MUIUzlV1T8x2wzYNpL7Rttqz81DvVji1jhgQin4bM2ZaPcOEC4UlAH6DutuLP4caqwfF/NhqxzSXVeKWPK5WsSZZ8TuclhZGMokShUFfXEp0AYKd9WgtuzkhPpAubVOg/1DsxaY2qZRlZSgsyryVa5pY1UK4sAT0HwXoee5OVZi90tGmkRr28JytQxmNVKW24sUZyeLoYLzmHiNvh2v8+92IIb/koAdRU2dD9ho4fS/zFzwIx/M3PuUzegMDOIN99ep+Sgt7ON0e48mqxCg0YL0OUoxDfDVsd8Kz4FaP+m98Q+hGSbhZMJVJQO3xkecYqUJQM4nBon2naDpAavIIrYSSXxwnJfiHLNwzU+i6LcDxesVQ/H2f2ZETqdwe1kWfTXKoOp+XfpcpeEks1l/+veL6O0sAWIwV72PRXyl1tcwgZcv9rEw8iBogNIFQo+kyp3gM/E6Ui7o9k9erG4VAtut1roiv4N0O+lB6z/SIhxNFeEhnSp+hjwUL3Vv+jLsxlizIZoqIIY6GKCwPwicG 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)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5AVedErpLgCiIrTaY2crpNdB+RVRYl4ZcwLw8pp7DFQg02w81htc+3eawrtrwBpkOAoL6f4gPeHK0wdhvYTucSfONwua7kMXkpAHIu6nUSfNBdU87r9nRwldnVWd2De1E4/HiIQpt+CR+L8W1BXQ3v0xiL45aFRRJ/pqbC2tNNRm8IrNEZUanR71hCDw6JGwTtNrTJQtCC2yDe888LgxLElxje3a5U/wtufRw4QURMUUkNBrCn0ApkyNC6JMJEk5eCMkxUZNr9S0e37eMP/BMY9jPO2MUOlcmSNgVj91FpbbHcVaZWX694CHsh+cAgE3UFbFFPlDiSNKRhMK3KfZLgPtY2/nulSRBcYwgkg5kPDG5TtNvCkP/9CTVvLv4TRjpAUogV/u1aNYp5XVyeQVkjlpPJ1eG69rBjXM9Pn1uKul3RpV9qlQ7lL977sXExDuGYML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SmGs3n6fqLJmgyoVVvbDakyeXhAjTFrSYofo56BbCy4cANUN1/WbKMtLs8rK4VV70xKjTKWp7SzbFhhmkL3GqJuOJj8xWPQwguZ5k9+rb0qZ5WSG3QK2qyUNur5nrrM9rMEs0KunMBA38iOcRTE81T5dYDxeQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: zom4q2G5LEB+m6DuZkdEqB/myPh00FcstJpPlClVtlSX/GFJdVHYbYMuKIihv6yjMLMjq//ch2D8HJVIilCWfyjGHIkP7/ni2u/iRR6OQ4BQvksYJmXJufn5QGbS21juAZrMoA2CIdxtnuqdSL2Dadyf/A99fZMfbi/3uwS+kpDr6Ibr/ShWyZJJRYg8/lyOU821vFxCkK7w3DPWy3yC83ZxjUI3qmkcz4DolSnN/ZIrouQXOKzSYe8VYrnuV1FQeKcjrshHyh/X3ZH7xVq2vmMYwnf9BWGH2pBrYR0n34K6pOqbdjhdme0Xq6pBejgnUjwYt4aZljoPpOg8Syt1dal/Wpnnylw701brjf8QBNQ1LUcIwU/2kRoEFhokmtQZ5xfy4PAGEP3qHa/AEEVT+OWHWD0F9vgg+nLCejNlqLOsGihaTCiAEggwIJJOQ0TAV2bsyaO5COT0voY4Smr4uDBVlfPhI6HKuje5pggqfV70fWtU9OprDwK6j/SxJXFeLhRTgmUvtDHo+aswvao8xZKWKjNz5Fgyi84krhchlTuHCzx+kHyv3ttUZXI4hcz2XwMWXNYhgCzHvxQIjraoxv0pLGaRAJSwSsyzbuRTud0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2511f38e-7ff7-4e78-e3e1-08dc864dab35 X-MS-Exchange-CrossTenant-AuthSource: PH8PR10MB6597.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 17:25:32.4228 (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: QhKG62JF6SFons4A4eULeVhZiejrhBI40qJy3CgULEkVbXpZMzlGrSimoqq/q+WRX19kN59UvlLvXRxPHBEtT0O1ByPoRdpdyNjYH9lZkc4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB5898 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 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406060123 X-Proofpoint-GUID: xeIUb3xLW93gn4Dp0QJ70SYqIworwC6F X-Proofpoint-ORIG-GUID: xeIUb3xLW93gn4Dp0QJ70SYqIworwC6F X-Rspamd-Queue-Id: 1EB6040012 X-Stat-Signature: 7ywkfhkjffifiaiec85irf5eubodurms X-Rspam-User: X-Rspamd-Server: rspam04 X-HE-Tag: 1717694745-670860 X-HE-Meta: U2FsdGVkX18zSghtmYvWY/bAFzFza/b/fWf4rJUxw8pjeNXrOxSiTMse5aYKOsYt2tZtUJOjNw/LSgfMEngXfFMclo//MvUHVsHMAmTp+197gIlh+dlOJcn9hAEyrjWF38ZycJ+Wm9ct5t5XLtjWDSdIufLhfrJAekMmov2WRru5b1CdAsfkBzrS5kL+u38T8vMEiv/pKwEzc8LwADy7duOD9CLnXWpxG3Twg8A5+8w/vrvojBxWSvPHIVp0rJUBNS5zzH1pJ6mNsj3sZ/dxgedEJIgG9oxaRLi8nCSSHq3K9ITfU691ML3sYC2GX3Ufxp/rRt3EudtoFeT5GZ1B5S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WHtMXUiT59DEJoCHAnfMl0kzhzNWv8ZXD4gUkz2UVPoOeZuVVhNrG+Jlj/9t8IoStHmEnyLaw== 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 --- include/linux/page-flags.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 104078afe0b16..64fc191a75e8d 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -947,12 +947,15 @@ PAGEFLAG_FALSE(HasHWPoisoned, has_hwpoisoned) #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, +}; #define PageType(page, flag) \ ((page->page_type & (PAGE_TYPE_BASE | flag)) == PAGE_TYPE_BASE)