From patchwork Wed Jun 26 16:06:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13713159 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 7435EC27C4F for ; Wed, 26 Jun 2024 16:06:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E7B8E6B008C; Wed, 26 Jun 2024 12:06:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E01E76B0093; Wed, 26 Jun 2024 12:06:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C2D806B0092; Wed, 26 Jun 2024 12:06:47 -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 A25F06B008A for ; Wed, 26 Jun 2024 12:06:47 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 542A6121494 for ; Wed, 26 Jun 2024 16:06:47 +0000 (UTC) X-FDA: 82273518054.05.94A0F11 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf15.hostedemail.com (Postfix) with ESMTP id 0AAB3A0027 for ; Wed, 26 Jun 2024 16:06:43 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=cPaeS9FU; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=IaeOYPFL; spf=pass (imf15.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1719417995; a=rsa-sha256; cv=pass; b=DhpoLVoPZoEK0i8uXUlDW5K6ckYa6oiIMcQceggwn2tAnkYnXuUOv/tgWXNnz0dLU9/k8+ SFtF8PBIrCWPgIGGHjZ+fFQO6I5+rI7Yj0AUBkI3cSWrGZMrecDVR96RfAmgTA3KAWD6p5 v4Ssn0d2REk1spqUJVu2oTglNepaKww= ARC-Authentication-Results: i=2; imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=cPaeS9FU; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=IaeOYPFL; spf=pass (imf15.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=reject) header.from=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=1719417995; 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=gM6p7keAHnECOjt+PKvFW0zRiB40kIEnG7o+UPDsALw=; b=vW9EzhAIO1nX2w/SHdrkpoFTBzTS7mUZVBrO5VGLSGE+sjWHi9ePVFYGkLDpnKEOHRyg5r t7VDpNdSw0zwWbVG3WCtSWvM432T+SY26wX3nw9SjSPLybdBEsLBpDNeObOx/1QM5sU/rT vNZntx+drABASOHyLUh2Z1KeJzEaVf0= Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45QEtV7V010974; Wed, 26 Jun 2024 16:06:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=gM6p7keAHnECOjt+PKvFW0zRiB40kIEnG7o+UPDsALw=; b= cPaeS9FUI9ESi5RHpyQRtpa1hlU3Dx3eTKbYzLcFA+qxZZ/uaK+pSsmvlcZ9z/9t r1NE0ZZgC5pCKek4NLtCrd230iBC4McnHBD63dB0t/xjbVC3z+GivQdUK73bYGO4 RFZ6Nzi+u5rwDpbtIN58loT7p5ejdi4zxLIBF0P4KRm/6+LpgOBC1Tr1aUvmKMZM khfsFlHnf6wPdWvxWrPi819rvNdR3cQOUYFJs1MMQSyW7jfL6VlUvE9Y8bL25CnV UnWKvbNJ7BEULWLUspwuu+JGU6XFR4j5iNhI4YIKfE4wVfYDNEHTxtwfzhaf511t VS0v0AOrnRtultHIP1cTyg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ywpncc0wd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Jun 2024 16:06:42 +0000 (GMT) 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 45QFlvKQ010721; Wed, 26 Jun 2024 16:06:41 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ywn2fr8my-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Jun 2024 16:06:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T+OBVLwMNGUyrSiMvlUW7ts/AMMPZRIwvwrNR2hcq1w8c4af4PMFAUMRvnb8wXukbcYcDZujC8dBgk37OXHCaBMvmkK/w+1BbSAngOErdhhHkLo3ODCZfza21auqjiAmDlxhV6Ev7RXMRZR9um1GMBWbiav5AUb3IgTGzyctiWb1CeXDUmoYJHYoUKjrl7w5hFZm1J5cktz49BgJkSqLrHVoFkAbXZZ+66/tIzpfLjAopde5bI8JQfy5eQl9Io6EmYEeWaMbeh6uIzh9Ri2GHuy0h5NjQbtrAAgWQCGvFl16QaLv9b8kLF/f04/xYP4TkQAvoFeJLsB/IB4YVQNEjQ== 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=gM6p7keAHnECOjt+PKvFW0zRiB40kIEnG7o+UPDsALw=; b=lUA0vUOH9ZDoW3AKjB7XyaMKoUwLX1exevaGXnBdRvQnThpY8/VOwDIHci7JKz9BShVrcfvY4ruFO8dqXmZeCuwgZJlgbwmCuVa8REj+Vc2vCHZMi4hTveld8q9p5cTZ28D7ond9emGDSMNPp89zc9CiBL18VxjT61oIf0WnOQs25rAxrNo8ox/T9CjukUDJ7sMAytBPA/a+VyGkgo/TXfqyiAOZZ5TmvAb038jKKr+mqd/3C8v4UuGPnsuqS5ZR4uVg3z9xKQqMgo5p9Q9xS49c/yCZ2o1Gt+nG5ZFBRLEdO837RX6HZM3frXBMM2a69NaPfEPNBGvOVOKusK5aaA== 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=gM6p7keAHnECOjt+PKvFW0zRiB40kIEnG7o+UPDsALw=; b=IaeOYPFLVGre+GUnT4mCkyabO7zcLou1OZFSMGLPD/hm780QREgKM8PyQPefU+YHJ4jTIp/xadiRppD+ncR6J7vp2nlGS+Uav89XxSmMlcmJocMNKBel8wm87jLwyeOHRGwnTTcojoryOAdhxbTbHu3oXzbFtrEjEccSmtp+kOo= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by DS7PR10MB7225.namprd10.prod.outlook.com (2603:10b6:8:ea::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.30; Wed, 26 Jun 2024 16:06:38 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%4]) with mapi id 15.20.7698.032; Wed, 26 Jun 2024 16:06:38 +0000 From: "Liam R. Howlett" To: linux-mm@kvack.org, Andrew Morton Cc: Jiazi Li , linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, "Liam R . Howlett" Subject: [PATCH 2/2] maple_tree: Add some alloc node test case Date: Wed, 26 Jun 2024 12:06:31 -0400 Message-ID: <20240626160631.3636515-2-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240626160631.3636515-1-Liam.Howlett@oracle.com> References: <20240626160631.3636515-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4PR01CA0093.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:ff::25) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|DS7PR10MB7225:EE_ X-MS-Office365-Filtering-Correlation-Id: 24f3741f-c87f-4005-8e73-08dc95f9f56e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230038|366014|376012|1800799022; X-Microsoft-Antispam-Message-Info: JhxLO+qk7QlaND0efNs/eK1Ha7oP85FI/9zQPkhwLEOASFWUAEU98dzqb4lxQVfAi2ZtpAQHrtOd8AO+vAEZByVOgEiXtCm+J6eLH/FNCRPn+F7X2zXcFLoZcQTvz/wz1VlZrB5ZWV5nGq8zTnD+lvPOenIqsYv5i1/NFxNtFyP/ainjgjxqynqedXLqjRfEeSD0lGFXIMZAmzOVjE3FWhzOWozCjAT00gNPx7Qns3zLD2/ksaNsnYMGiIKmbVIafvYlcm/7p9vOn1JVxfduPGiIKUrW23Iy/ouXKs2Lw4v6PCGZnepB6Yg+BYG40r2uwpsE0DrYft9blMQxAnauk4wJ5jvCxyC2Fcpi02m6M5fv1VWQGbzGAS68x/EHwl35eGsfdDsihlJy8+HpKBayQNktsQMO9nsewDDaJ/X6QptnZhzrhSwukpvoenZhRZt7jcM0n+JbJ4/36aDEn0N9bJyhorc/75KfaRqVXeOKbdRlmM8srAdUHCDyjfvMBZzaqbCo4URQu+1FZkOoeHzdYhPGbsMy6/puj9owbFPO3gd1RLADKt3JVsYzfQ27YZ1sysL+6BgADGA1le+pIg6UHV1I/BEohhY2mKIvWAa5xRcEBmUddHKkuN4A5vZJNtHuStERTFYI4/ENMmnSKNAtFJFmM17NhwAMP2nsZuIbgvsjjPYgJPjqJ1Q0bqcy+vzs8eoT2sd9JTIIdKgo53ne+DuGCkVMpK6euLOXkO3RXxuscgJEJGsqXdoqafs59AJY1MGbmeVz9SzvcCwlthlI9/D/9krlCPB4G6gM8hav87xV3WmTCOcmvRQyjExc1Dmpgb7mWsoUdejort/xvybDOPd0o7RRjN9VnrWurxG2R+Z+IneoI/VfPJliUbPBt6QNtnH0JcVK6KuGz6eQJQvAnZcMgDHLiQdTBWEMGFBCyV+G8txiBTyZZakWuSR+eISI9RsbVBa060xnQ+QL8qkTzAGd3cSvT4DP/9uoKzSgj3VRRQGyrUANwPZgpIqLMAfmIc/aFfCiXS+xTkjbbzEMhaZAP1pTVs79Xy0vtrs5DnYud3YMRtU/uZGrdb1x17TxgdH3T5glFdqp35rm4JzdL71Sme+2G8ljE6s0/frPWsNETh+onn1mUlC7HS2h0VX4eUPrKhyP2myYrEW8nLWWIdWhhpn97X0YESFkMHA/1mRY+eevHMQnVvKW5/ltW5sDuf23Bz9KffTvpzoIehAzh78yBLfu8tr7OhfQRogyx6L5WKJYAvXeTlcmSvwyZ5gPbg41fSOSwMCX9t0mF10dbPcjC8R7LKc74NEArp4dFAobxKfeYrlTfu7q2sCsdv1IJ5S1ywXHc440dImg1eIApw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB7933.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230038)(366014)(376012)(1800799022);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Nd71TbzdR6WMzO6Lh+RELeuJRfxR94OBzX4GZ/U77mK8U7GP0CtOfaqI+JkMk/S8fUo1nWBNBiBoo2Eza5qxQrNrHWjCwf0bDtiWP4Q+J4io/XlPP4LOE2r+RWKaLaXYYEYM5I4Zo9o8KlQfyDsXSkwQeDV4B8VAltClzJjAUZclqoMJ3PZ4Df+3nQajTMke/WCFuDUfHEY+tVqBuIJrCs0j75g0P3byLBqXR/5NWdqU71kN43Qtbs3dDV+Ox0iZuxDJxkAtGca016REe7xhqlJwR6enH9qfl8X0l9PCwWuy/Oin1pCuvCwAczC5nZCOsyQ+mRusOCesLRBIfmDe8sI1ItzqhRNfXEv30CP7qIwYc9zsIoUY026ThaqnFnGtPnvK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u6ZREtfsLNTM5h05A8Sjmud2ugu8tpr4ghRzLos6WGW9saB2cdbbcUuhg9b6cGdb+JovAx06lukgVq7n+wC+DqfvlyWphe4x5NoSYbTP17PekduuDZagtAwTNB8UpqnVNVv53T5OVPt9tvSVnyQDg5Y7XscAWDxUvy9Q== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: JwAWr0E6h3GqB9RYDLjuLjsXFekYbajOQvRALH6eaagUvZHm0tRSK8m99GGlWHKOmJsMApLi6LYUYwxPbjp0NddWDfZePbsn7crhFizrV6dIfgxB8A19qMrY4yHO07+oNrmo0LrVpp4FNQ1GcqHgJSNDmX8P48/h+D9NXFnr86feN8h5TkCl6UG2fqSHLa8HKyTVkkzCVgVKACs8ZHTT0CyMDRBpLFz05rfhaVDtotkJhfg0dNCuH3xLm1zmGS5VLaZ0fFQLQRSc+3SIPWZjtXnOGGRNeJg1ME2PA310biG9+DfwsDm1VweUmZkWTTKI/73zA01exX/ud7uoznA+jUFyhHFJTeIVzNR495tB5OxhGAxFZognq883+JCCTYMSEkWuGFzQNynGk7F+0+YdKDBWsLruyk4SjoEf1dgiYlFIKBVfBRb5d4+x2Qz1ieD4vZ846u9bHm8FmDFglcuLS1XNekcLcKlBvo4mtM4vhR222XPsMT1yAOqmwsZK6TkzvaPfKBR6avhd51DPQiZnmJ9ogyOIbsQHei8drQQy9fajxdGb77FQ84Qh62mZyRvIbYtnQpO7AUXRBs9g+dZOwcr4roY7HRn7cpG/kZ8zFec= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24f3741f-c87f-4005-8e73-08dc95f9f56e X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2024 16:06:37.8233 (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: w7IHVkWfzr7nmOFTP7mfDAr5bXemAMDgtnFDFvTL345n0RBw+syNrNKec5sQnxfTf6cFXe8aqbb/3v+iGGSn5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7225 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-26_07,2024-06-25_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 spamscore=0 suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2406180000 definitions=main-2406260118 X-Proofpoint-GUID: BCFNCShGgLd85aV7t1zCBKS4zbIaVWF2 X-Proofpoint-ORIG-GUID: BCFNCShGgLd85aV7t1zCBKS4zbIaVWF2 X-Stat-Signature: 84dg4sd4e1nr64esiartgj5etus17w5j X-Rspamd-Queue-Id: 0AAB3A0027 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1719418003-979000 X-HE-Meta: U2FsdGVkX18Eho4sY8Hmt9bLgGagQRfUX0FRaatt7hB13mwndsBuRhdZgh+XMCh64/PYjMNucOO/Mf6XY9C1xvxFvUWueyp1b0L7FJ2gV+LSk7PcjVgSG+NtHEmrMRtNv9yI0dd3OijxlLUShDsOjJkHifbYsO7KVoC9g1BpClp4/gHAPqNAmqyNXyYU/0+8BIzqw1g7E8uONKOb5fiHjQSF/+a2P/B6a8Ev7AZzsUO022iQxY5Q1LfJEFSh5WRYzhC2davKew+dS5qK/5u4P4SMdAc6BbqiSH8NxMFFUAxPAMyoGQDq5kOv+X0FzebNdX+z1fr1yIbES1yjqtE0sHN3iwpPq6qAAPVBido+C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59hoOztOBvYHbUCD8pZDpYbdagxfcRVocTTMrH5RzM= 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: From: Jiazi Li Add some maple_tree alloc node tese case. Suggested-by: Liam R. Howlett Signed-off-by: Jiazi Li Signed-off-by: Liam R. Howlett --- tools/testing/radix-tree/maple.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index 11f1efdf83f9..b4b5fd9f294d 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -462,6 +462,28 @@ static noinline void __init check_new_node(struct maple_tree *mt) MT_BUG_ON(mt, mas_allocated(&mas) != 10 + MAPLE_ALLOC_SLOTS - 1); mas_destroy(&mas); + mas.node = MA_ERROR(-ENOMEM); + mas_node_count(&mas, MAPLE_ALLOC_SLOTS + 1); /* Request */ + mas_nomem(&mas, GFP_KERNEL); /* Fill request */ + MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS + 1); + mas.node = MA_ERROR(-ENOMEM); + mas_node_count(&mas, MAPLE_ALLOC_SLOTS * 2 + 2); /* Request */ + mas_nomem(&mas, GFP_KERNEL); /* Fill request */ + mas.status = ma_start; + MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS * 2 + 2); + mas_destroy(&mas); + + mas.node = MA_ERROR(-ENOMEM); + mas_node_count(&mas, MAPLE_ALLOC_SLOTS * 2 + 1); /* Request */ + mas_nomem(&mas, GFP_KERNEL); /* Fill request */ + MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS * 2 + 1); + mas.node = MA_ERROR(-ENOMEM); + mas_node_count(&mas, MAPLE_ALLOC_SLOTS * 3 + 2); /* Request */ + mas_nomem(&mas, GFP_KERNEL); /* Fill request */ + mas.status = ma_start; + MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS * 3 + 2); + mas_destroy(&mas); + mtree_unlock(mt); }