From patchwork Tue Jun 4 17:41:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Kumar X-Patchwork-Id: 13685728 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 628A9C25B78 for ; Tue, 4 Jun 2024 17:42:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2F6C96B009E; Tue, 4 Jun 2024 13:42:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2D92E6B009D; Tue, 4 Jun 2024 13:42:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A2F76B009F; Tue, 4 Jun 2024 13:42:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id DBB8B6B009C for ; Tue, 4 Jun 2024 13:42:20 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 83F2980B7A for ; Tue, 4 Jun 2024 17:42:20 +0000 (UTC) X-FDA: 82193925240.28.098FD9D Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf17.hostedemail.com (Postfix) with ESMTP id 42F204000A for ; Tue, 4 Jun 2024 17:42:17 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=LaXKDs2G; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=w7O+KYjZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf17.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@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=1717522937; 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=D2Ttdv4jO/M0NZvyd6x11j417E8vjm6zIIzfz5tzgbI=; b=Ie7JJA+EbiXbuIwKrYgPGz06Wl/8cjT4JLW025PaQSxXv6l5+eG11RoRolefQX1m4ZT6Pi Vz8QgTWvu+Q/gou3a+HpubK2RODSsitLHTvhYkcAXF6+H3XKO4GytcImWswFypfKwmuu+Q 3/Kma0fm6F1F4qiW9icB571NviNcZ1s= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=LaXKDs2G; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=w7O+KYjZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf17.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717522937; a=rsa-sha256; cv=pass; b=hP2+LsLNIrIksTDurMKHmPNSewFgdu0Nw20blI2jkACQoQCP7/eCsgA3jnWrNuDTcVkFSl dgVD7n3Sps0t6CpdV0CpxkIiZ+VaaN6ylw9+9FLWm9F6x6QxwBGUtbDhaO/BtBNdApWjCQ 32lYq7hmxfh4LzpkdAc6ZgBWcUfiI4Q= 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 454Bnw2E024630; Tue, 4 Jun 2024 17:42:02 GMT DKIM-Signature: =?utf-8?q?v=3D1=3B_a=3Drsa-sha256=3B_c=3Drelaxed/relaxed=3B_?= =?utf-8?q?d=3Doracle=2Ecom=3B_h=3Dcc=3Acontent-transfer-encoding=3Acontent-?= =?utf-8?q?type=3Adate=3Afrom=3Ain-reply-to=3Amessage-id=3Amime-version=3Are?= =?utf-8?q?ferences=3Asubject=3Ato=3B_s=3Dcorp-2023-11-20=3B_bh=3DD2Ttdv4jO/?= =?utf-8?q?M0NZvyd6x11j417E8vjm6zIIzfz5tzgbI=3D=3B_b=3DLaXKDs2Giq9Yuc54as2jV?= =?utf-8?q?LDEDupf9e/TZPD5XbNIm/1HoTOSyGiQGLLHz5J/KVDnymwS_YNFJbepAWHnV441MC?= =?utf-8?q?r4orQWnbNMfdb5Q1eQPONXzmJjF7JnW5WQ0r+srbgcZhKiriLUk_NAfuNQsQml6KR?= =?utf-8?q?M0qY6rI0fMN1vk4Q2m7wEql4XHDd7B0gRo9hwVuV5urBVd1nbvhBiVX_C12O6mXr7?= =?utf-8?q?ORBZ2HpdQo/IWeFE+xmbHDA/2qQwCFo4zeD/8A+Uz69E+yoxzhoVsFLN4zX_xYOM1?= =?utf-8?q?xB5vWSGgHFnmo2QjdZN6wicqgKCIwlAPwOn3nPquxeSbDdUvDERiouWFhVVEXc9_s?= =?utf-8?q?Q=3D=3D_?= Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yfv3nwhwr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:01 +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 454HAhWd016185; Tue, 4 Jun 2024 17:41:59 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2042.outbound.protection.outlook.com [104.47.55.42]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrsaf2q2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:41:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nMkfEYE1dVmdukxOxeJpBxKntOgXm36vdKJG1Z65mWrS1jNts1+f2qRgkUE0YK+18m+XqpUYxN4h2iQHjeAzB7yuTyet2pNZBt+I3mnUvSaE1N57hdFFGl4J3KgwEoPewdQN5JanfoBNAd/JBWrLvcnpO1xpwSrHbQgp7+IOQlNe4YH9xFkhGQlTgJj3ATtLsVsSYk7lSTMUp2V9YNzw8LZXlErRDy8YpIGPe/9Kv+cLJQuDqHWuO/B6P78vi4FqcrATLoGkUK3bgpFDeXkUUBXamNU9hrzoKTjur4MIRcTRqa8VAZUBf4t+zWYBKr3YiwczNU/3BCGQbmJfCiNOrA== 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=D2Ttdv4jO/M0NZvyd6x11j417E8vjm6zIIzfz5tzgbI=; b=VcAzZimpBVO5OEOJAou8uGkEDPI7apVmiIGl0KJDVq+/euHB0o5+3qghpty1U7fGtsJ6u40PbKqueq8FJu8RYS5JRu/tcSwQsO6XKRaz8rn7UUw1NIRQGh6Otf+wDeRjnJSAbHVsDquk4Jq7ADw+4E1G87+RZ4jdjs1PbuD/7Hty+H1cuYXRHlnDCvBKr9NMYwfdCvwH7JngW4ynXUCqz17Z+ObRmFI4AheE5ATzLvS3aMKmD1NIItNwauyWgi9iWGVBQrl84236cyfKW9539GPwbdpN+VBW41q4uUpmbjNl/HYts0+o+j/j/HEwc92hUxt4A3TvPdfqn+3flqFPUw== 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=D2Ttdv4jO/M0NZvyd6x11j417E8vjm6zIIzfz5tzgbI=; b=w7O+KYjZKmU9BOtLQ6aE67KqLjJEHv9OQZBTR6zcxCF+EL8DfS8m5JxRq8Yp0KkMBDtGGdB/Q+9CcHp6vMz3FyloxJ62/10GId6fyxEvWGR2uJOReV1JjBOhUwhYBkMkPqOVKaPXcKULCG5PR2mrUVrrD9Y/zPN2z65KzXrMJb4= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by DS0PR10MB7269.namprd10.prod.outlook.com (2603:10b6:8:f3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Tue, 4 Jun 2024 17:41:56 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2%7]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 17:41:56 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, liam.howlett@oracle.com, zhangpeng.00@bytedance.com, willy@infradead.org, Sidhartha Kumar Subject: [PATCH 01/18] maple_tree: introduce store_type enum Date: Tue, 4 Jun 2024 10:41:28 -0700 Message-ID: <20240604174145.563900-2-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604174145.563900-1-sidhartha.kumar@oracle.com> References: <20240604174145.563900-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: BYAPR03CA0024.namprd03.prod.outlook.com (2603:10b6:a02:a8::37) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|DS0PR10MB7269:EE_ X-MS-Office365-Filtering-Correlation-Id: 73949498-f61c-4c93-d49d-08dc84bda0f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: DOh0i3nkhKHNXBwirOQlS2weKyPNNHxgKECB0ZP5WoPgZsq83ftclstqtOSXZxPGdgyFH0ul1PzJriGw/ZOHiAVz9HiWV5GuPtLzb9e5LKqdWAz+cjBuBYo/+43KGwr8PjSOjdHDzCUD4YcGSD1OfYu+WX9AgWfmZS/0jBkzNeEJNkkQsEs9GYtX3dr4ES2SxjG4tyaWc15KQf9mz7Y1gPCco1SUCAP/7gp+XBzpgeZ9bsR6nsxbKRARPeXJ6ajdMXIgwPUKDBZ0ac2D9gKGnR7tcNQ34oIgUBUrNYWfp++ugaw1rJRp1l/z7UX9rBBNo0PPOBCP3547lQa7BJa9WksJaYPW1bn+QfA3IJY0ArJ0cvGr1p+RgsNNV03QxTDbEPkf4KzwAJjq+TNftu1aVm3H57JSq7qVhZkQJs7w3rt6b1PbYjDGdWSc4KG1SJnIe3bjbwmP34y4H84micMwETrCaW7broJZUju1dgapLH/WotfZmEcIesTv7kaz+g5QgbbL5RG1LdWIBKdFoThs2srtZo6wMox4HO/t3K3bH8rmU/1Ljcwl2IJJk69lrYpXja05jTN/7YITNfDHRyX8o8t8vqBofwWzDxO/b7R3X3WgPhYjdzcFJAdQoLmS0vV7utpjm3U0VWS74/JUCGMAPlInVePvDbXJdq7RHVvc/NHSPp0f7EANdITmQjplAXwDMNGcEjxc0QXpNniTWiMrQeMP11ILCJ+R8OmIjthVapXVS7Yta/V+A8CWL+KpEWXz1Kl7MjitwEy0FMiy6Ucjg6wc1mz7b8H2guhzavDr5v6HS505+mUkQtTFmSGZ3CyDepe5SN6NRpW+zNl4Zo7UpetjdWASxiiORKUe45v9yn1ED0QmSzRIS6pmuEqiXhKNtvne78M3FT6GAwdpIhKX8Zkn1VXsMnYAeHwoS+fM7hzHioHpzCMGe+jeDjtbBaJD6gR8lZ0/ouXMCFAswJInpbgX4FB6nZCcDSP/yphXAP0LtgYZK5+/YDA5P4xZe9Zli3A13+Zu67tgm0Wf4RhDGfiRwHkgTxZnl6ZJqji3A43Ujp+XIODjkupnKfJwprf2ePkJqaEVjdb/tej2e9kiQgHS1YRHtGUG89KGVFS4fZMIATEgqAKSzzPFjzN2YSG2+0kWXhHyTMVugTmew8ZuX5XZzOdCbmSRZgTa2pZ1WQFD1rTkbX9rCT3+vZn0dAkXvAYAMGDABPFnfEi0+z4Hj0W6v5h+f68SWhhS+57aWwN5kvJs6tbJ5favp0dgHeVaa8ApP37vluTd4VIzX7w+zV5n+hz9dIWFcxN07c8D4op9dbBURNFXR0SvYraixLqX X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mfEgvLeG/1oPtY+xqD6EAimGt02rAaprEZN0BdHjrgfTd1a/pkJJ96i3wenST7nXEdtz3sb35ZKGzhZb3mQqrQzyDHEh6vpKCtSFNuNrm9j6XCad7iIGW5DT2YTDq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h9DeRJd7pD6XwwkDk0Lgg7Ci56jU3h2Gj3d9ZycLL+EeNk5kamqNNmsHxEYf+4sbOSFSTObSXbpHosXUkSPvEiYCe9PTOZfCdOQ1Ady0BOAm80AxEpKpfrT/1zuib7lkq1s85BY2QQ3C+6ybiVXu9wak+LkTz7I427DmQaLQNn5jEDFP280mS5jRZe+LXlym4Me5XQIyNyeGRqZK6vimtM1gdcWuK8/3dXSHfeKJDAF/7NWBSA890o0GTN1J26PDlM+DVPAuoL3MpbxYulYj9Z8of1DO3z196ESojipEoy3e+vZmWUV7a23fXCst9q928eO73tF/CLqoLn7zdKbTBj9csCyNXPyMojfkMHM5wCVb5aRlKs+rWEdUvM3JtjXD9G3mrjoUAVImldN4wZbikVK2GsP5IBSzgTrTKsROSIuuGprLneViz+slLNIVg= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: UZX1VP1sHP22WiCgfsZW7EWDveHV64WGyfyjMuZEKGZTqY7UThYmefIVj52C2Ou6/N9XfW93qUMGolb1cwlfhWR6dnVNX9Jj7CgdyDlw80vhsQudJ2u+fJwwBDIO/T72Dgkz6oQpeNUN23MjAoxCrQHZDEpfXfJQ5Hip0M1nknwhgftcZ3ePh7//4I0uNgi6J7jecIY6Bhp81fZZYwV9yhbIPItYkiEfV0e5SxTu5scyNo94NMqyPXcg1hpp1BcuZ+lGDaib5p2/V8hjSiJOAGHeMZxLXnqQjBnBneFBVt4mFHx+bHviHbJ2b+EHbvPm1ReagAI9Mvv/j3H8fC3CyKIESY/KY5B1O2U9OLfSAvajFPeZzDd0zij/8qdkUj7wl1PKjQCsmiDC6hU6WuropS1Yygk0kRqptQbrgjMCZYGmylrZMhCm8NWBU+xQ3JzTdKY2wh6leEFBBckWtS7e3YHMCx6YbUdwnNiEhofgVxYX5KECsWCZcIme025fDvjjtrZqchdg0Bwhug3adsL0YdlkDaeFb5J/vT2gEvrKEqjceMctcSWZenTw4FXcRpZomgklyLm9IvRXPPSMmHU8McR2uSeKdR3Q80/PtcZXx+k= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73949498-f61c-4c93-d49d-08dc84bda0f2 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 17:41:56.5411 (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: 1fW4a8/G3qg/B8UPQi9+8g6yfvdFPuIRlwlEuTq+B0cBnL2hBn2PTKhcG3NbEtt8G+o0+EJ7V0L5NheVIf8IlA7zYcSP40NRUeb5jzfMnss= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7269 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-04_09,2024-06-04_01,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-2406040142 X-Proofpoint-ORIG-GUID: sGOGTHmQ6zz-9d67wTFsxTze1WxafwcJ X-Proofpoint-GUID: sGOGTHmQ6zz-9d67wTFsxTze1WxafwcJ X-Stat-Signature: kabjob4fzb8hiher9gigo8a8uj3fqwzi X-Rspamd-Queue-Id: 42F204000A X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1717522937-651586 X-HE-Meta: U2FsdGVkX1/5EK7khPHrUA1LOhec/84LZHJgeFQzJPJQwqejGSWOzRHnT1x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Z+Cze8UKJEeqARV1E3AA4NEGNjHelHGyLbr4GgAEcKp1itqNa65bDi70ydgt9Fb8TfZpQI0vSWwXuGS8aASYlx4fcMmcy2itHBn0hOXa8uMAcib4Cx4TspIbnSpk5tMaRJFwketKiDRXxjbgt103BevgY4sC9mBYd0aZD4WHePG1zvWKUZeMWc8a4D2sYlOnVj66W8hg2oMKmFvjxtvssSEfnavcEHWmCqZ9L5rFzOMSMJFLoRnhce/1vG318uJEPHt9FmiwbtDVnQXBXZbl+Ijp+rYG3bhrvcSmbVXZ8WZZOl8JZEkwV0a/2Ak4e/gmYIng== 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: Add a store_type enum that is stored in ma_state. This will be used to keep track of partial walks of the tree so that subsequent walks can pick up where a previous walk left off. Signed-off-by: Sidhartha Kumar --- include/linux/maple_tree.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index a53ad4dabd7e..2a2abda9eb32 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -148,6 +148,19 @@ enum maple_type { maple_arange_64, }; +enum store_type { + wr_invalid, + wr_new_root, + wr_store_root, + wr_exact_fit, + wr_spanning_store, + wr_split_store, + wr_rebalance, + wr_append, + wr_node_store, + wr_slot_store, + wr_bnode +}; /** * DOC: Maple tree flags @@ -436,6 +449,7 @@ struct ma_state { unsigned char offset; unsigned char mas_flags; unsigned char end; /* The end of the node */ + enum store_type store_type; /* The type of store needed for this operation */ }; struct ma_wr_state { @@ -477,6 +491,7 @@ struct ma_wr_state { .max = ULONG_MAX, \ .alloc = NULL, \ .mas_flags = 0, \ + .store_type = wr_invalid, \ } #define MA_WR_STATE(name, ma_state, wr_entry) \