Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp99157lqt; Wed, 5 Jun 2024 19:15:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvh0zF9zigXA3YIIojUr6axjkDLyPBRE88bbco6aoEQ48pgKH+yDNHf6I2kwOpUUR6mcC8y+/PiADDDXCCQ3w79xbmRJNFBPJd8UmSBQ== X-Google-Smtp-Source: AGHT+IH3y4lF4cTnPqH4npDjDIndNmleIL2woqx9K+Rdi3wDr/WhA3uslwM3pc3n9BFGlCrs3GzB X-Received: by 2002:a17:902:ea0b:b0:1f6:6ae5:143e with SMTP id d9443c01a7336-1f6a5a8492emr51998185ad.65.1717640154267; Wed, 05 Jun 2024 19:15:54 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7e4f9fsi3254665ad.415.2024.06.05.19.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 19:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=hvfYEtXK; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=H727VdW9; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-203527-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D88B328680E for ; Thu, 6 Jun 2024 02:15:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBF4317BD6; Thu, 6 Jun 2024 02:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="hvfYEtXK"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="H727VdW9" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93B97440C for ; Thu, 6 Jun 2024 02:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717640145; cv=fail; b=ZXdKGz4o7I2ocU0VpAVf03teVWT/9fyucbw79K+I67znL47n6Z41nWl6I6R0I68pr836tRFtcD8wJaWU80P/nK/yhnhOe7Inur5mvtf7Qfy/c+ToIywWdK/YFPQNfgJ9s9Ah8l3Z32pjSzd1LzrxRiAH7rhnGbT+ir8Kxp+tGLQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717640145; c=relaxed/simple; bh=k6/WdLk5soflba/GXjhsu5yvLUalH8bXocN3ZZX1Chw=; h=Message-ID:Date:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=p9mbaaAD64JKsM+yYi6plIAF9lddqZtMKbB0zrXtlTCQqOaZTSijKIK24wz1Uu5DwPkLW/+MG/dpkfkNxBTEvqeKCGdJcuPeKszCZkEUbBxuAtIIgnGb+hgY4Cch5ICa+88brc3pvK3JFyQJfc8Lyq94KRbw8q40bYkBa/JCv8s= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=hvfYEtXK; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=H727VdW9; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 455IkCp0026607; Thu, 6 Jun 2024 02:15:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=corp-2023-11-20; bh=XIf7L2xpQsfpW+cVs2MD4srIsfzWqcQFPlT7IxG+dbg=; b=hvfYEtXK1eWSUFw571q2+nfwCcWfCbHzVUCHSWzi9MzdiN99133wh5KBx09D0akrH8i0 ANfLQpDmpZpixwLelwkjfr0eUZ+sd+gz+Fbjrd1gj3qTDVirwW//6rulnGx8JK0z+Kez PqcWewQoGelZ+tz/2z5ZEc/gxF07HrcgbrmKKsIuxphoV5pX0tJdoN9TdoxChWI6o3BN kVrLoDU1QEQJRTleOswCAxhyTUooWZE53wK2OdQ68gUnuiuGvld6BgkbWA/pVuGBHsut 0oo6EnHoUltOiQAADe4egTaurF2jxLYopUWTDzQF697hLTHaT96L0P0v0NydcXAs/GYh yQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjbqn2j84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2024 02:15:19 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 45602Cil005594; Thu, 6 Jun 2024 02:15:18 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2049.outbound.protection.outlook.com [104.47.55.49]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrmftrwm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jun 2024 02:15:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xfe6OThkbvgA8NbupuZHxO/ONShHConBupLYjLHKQJLaohKBgCz8MJOYF7nVQkmKxtJtjgeItlvQkrlWfOhGNrlSwC4BcMaYILIxF0/jwXdiE2jGtvJ9Rsg1HwBFFvEGJ6zTBu9hNzYwO1q4blPtheHU4YB3APc0nQI08ejyHkHdcohznBAeIEGHf6/dQwxbBAWfV5Ur+ld+62GWroTvLUam0t0EiEGtdEZ2CcjLNkNMgeEM110gBOCQbCr8izslzgGHHfcXCOOXYASnDbmsR+NE2lAQj82K66Ez4wW3To7gUzvWFE26TeQjrC7UbqnVkZUCxSzK1IYvidpU44fUbA== 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=XIf7L2xpQsfpW+cVs2MD4srIsfzWqcQFPlT7IxG+dbg=; b=hW2+usqd2cgQo4uaZlHvJb8T0vJlt7qrU9xEiMM2RnHJ3sbjmI51dPzOu2A4zmHG2jKCaBBFhx8V5glBlwlnq0f0nx2x0mznjE6aeuUJhLY7Jm6sxYuc98WQca8IMZw37RNi8mDblZksWs01RjL0wjkW4YfQvUcrUCTg0e29jjzZYqlal+cjH5NNFXAWd00gIkZVxnRAzAcgRCZ61F1meEHl2b9vX4Z5sv2yb3VPPNND4Q3T92787m9fzaZRoss3Ekbml6Fr5o/uV8RZThG7CFxpz+0cUqpQo3RUlHLXDdD72TfUf3gv2Y1K98+R4F+yS5zvauTqCUeoDGHOmVGKtw== 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=XIf7L2xpQsfpW+cVs2MD4srIsfzWqcQFPlT7IxG+dbg=; b=H727VdW9+Q1JZRZ8RsVHgr67TMztHQVlZTTSweUy4SjOJFpW833Pc3g+QJKmgSO5W9Zr0KR62UVafN/Av8dhhI9pny8OIKCJlOhoCUungfSAhOuPYK8dh26fW0HZ38OZqY9uJoz4VmQEA6u25iLDNVHIKTl+NEygak5xgV+k9E8= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by MW6PR10MB7685.namprd10.prod.outlook.com (2603:10b6:303:248::20) 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 02:15:16 +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; Thu, 6 Jun 2024 02:15:15 +0000 Message-ID: Date: Wed, 5 Jun 2024 19:15:13 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 04/18] maple_tree: introduce mas_wr_store_type() To: "Liam R. Howlett" , linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, akpm@linux-foundation.org, zhangpeng.00@bytedance.com, willy@infradead.org References: <20240604174145.563900-1-sidhartha.kumar@oracle.com> <20240604174145.563900-5-sidhartha.kumar@oracle.com> Content-Language: en-US From: Sidhartha Kumar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR13CA0004.namprd13.prod.outlook.com (2603:10b6:a03:2c0::9) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|MW6PR10MB7685:EE_ X-MS-Office365-Filtering-Correlation-Id: bc9ad946-84eb-4379-c94f-08dc85ce8127 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?R3RIcGpndnVvaHJqek1WM01HeWdDVDQyTU0zdHRoc2tSUWY5S2hzYklrbEdx?= =?utf-8?B?WExvd1JWMjBscWY0dm1UREZJbzJvKzlybVNRKy96ZkJOMmMrVFdNMGtsVDA4?= =?utf-8?B?SEprN0dTTExpYW40bDR0OVhlM25qamlXMTF4aUxwNGtQVFYyNVQ4cTFSMzNV?= =?utf-8?B?bHNuaUErOEdQYnJjRXVEQ2tFYlhOaWxQVUh6YkNzZ3A1aE9WNldOYStnWjh2?= =?utf-8?B?YlZxaEN0Mm1nSWFOYU5Hb3NKWHE0SS80NGhid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XRmMytmenhtcXFvTEY1VHJzWUdZMGhMRDJq?= =?utf-8?B?SHowTGtTbkhKTmhhcFNLTEI0YVloU0tVT2N5aTRGaHdUTUtuWkpDYXJCNCta?= =?utf-8?B?M2J4RjZxL1VLUGJIREtncU5iclFoNFVXK0VqZ0lHY0R6YWpZL3BDTEpLQmNT?= =?utf-8?B?TzBqcHd2NWZtVUJwcXNRMitGaGd5UUdtVkhoaG5rcEF4dGMvZFYyZW4zNGVI?= =?utf-8?B?UG9JdCttSVZ3Q2k5SUNLUTRjbEpSWEdTMlp5UEV4K1FxVWVYT3MyYkZSOWdv?= =?utf-8?B?b3pMRndwaGNaNjdiNEdERWJVUEtUWnVWb2hKRGNYbHdDY0RQQmp6YVpxRkI4?= =?utf-8?B?ZkpKTnJmbGhDV0M5K2tma2FodWZvM1NBSUpyR3cyeng1Uk8xaTF4T2NraGpv?= =?utf-8?B?aXFYQ3hSNmJydk1CMC9mYmVYSld1TkppRTJZdTlhL2JRVHBTYWVTWERjRFZ6?= =?utf-8?B?NDhWZXovNWY4YUdMbG9KQnhDQko1S28wS09GT1dEb2tnY0xSWWc3M3ljSW5q?= =?utf-8?B?ZmVzNGxrTGtGK0E1R1Q4QUo3MXVwQzgxRjRBdHptMDM5dk5hbWNqNkRnPT0=?= 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)(366007)(1800799015)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TlozL1VhVytuZldmMmprSlNlRkgxZEZkbmhwQ05HZHNjWklibWxYVWNwenNL?= =?utf-8?B?SE8rdWF2NmdqTVJUODNWdmIvalEvQVM4NWNlaUNTOUJKZXRiWVdUU3FWbDdQ?= =?utf-8?B?Unh1WEtwOGJqSTRUZnpy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Td6?= =?utf-8?B?NTFKTU5XeThpOUFQV3hCSTRxUlYrbWF6THhqMXJiTDUrRGhoTzFvNzlpd3NQ?= =?utf-8?B?RnFnbkR2VFQvOXlXTnQ3bU41RUY1VE5TZjZRa1pFcDZKcmNrWlVQbWR4UE1x?= =?utf-8?B?aEtGWWUrbHVXNldKUnBWNFAra0Y4SkhCMHFJcitoQzJIQjVRcE5jTmNFM256?= =?utf-8?B?RkIrK0RQOEdPVmpXRXRvdXZBODVGcS9vSUM0S1JEeHB4TldqbUdLWjI5VnNz?= =?utf-8?Q?vBcZ7FOyZ2KjqihIODdyS/k=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: J8bo5hBlvJ0sInjOL9piGY6PyTLvfxi4lmtR5neYBFGnw0+7Fj54s658ZC/9X1iGzFABtGF0Nb84EmecgZYu+N4dDM9WxThIOwAMQl2/i9IzMIypRgcNQIWx7dyCNuCtjTYRwlq/xsgitAJjefJc2ba5FNqkYHcdqXL8q/RW/QdxVe9wHL26GPbu612oy+q+ZgihcnydUcn+0InTYozkuA5vhYJ4jvFHZkUpIJGq1KA/8tGeMabWHVnDvdvmvc+gzbRiimlqjQf4EZDw++31NSmBOW2tpwmst8Kd2soKXuVwa8xDTAs3jFa0KBAY/FSrelqoXWUdeeCNj8TowkCxF2Lkp6VwlwyN3tzK8e89Xm58icsusyoUFVDondKAPMGH8lC+mVXjEyFKjMNqS/XmF1I3MVMTpKINlB14RwUMGc1pN6hPy15LuEOqsCFSXq5F5ldmXfIDL1nVkxi6HmsUOg+hLiwmZTs0U53VEPODNcjmxoGyR5kqOAgSGgpzt3wt/Y4owR2z0P93HSBa0UNARiHOJes72PmNYZ1qdvxB24UYv57B7NMk2WrEe5E3YLXDXw/JF4H1PLjUSqt8i+9vG2WxHv0ejQdc6YIdMZqoLN0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc9ad946-84eb-4379-c94f-08dc85ce8127 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 02:15:15.7987 (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: NEAdG7NmblknJsqAqDY5QQBEigKNm40QCx8Q/G7nyJb1h4H4or0mnr7Ertbt1lsCn7L17s/Qs9/iY1Q+mA6Q/Gnty9x2D9Jtq/wDO2PAecE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR10MB7685 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-05_08,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406060016 X-Proofpoint-ORIG-GUID: PNeyW8QPndA-gIqL1rOWMgkype5HifLi X-Proofpoint-GUID: PNeyW8QPndA-gIqL1rOWMgkype5HifLi On 6/4/24 12:07 PM, Liam R. Howlett wrote: > * Sidhartha Kumar [240604 13:42]: >> Introduce mas_wr_store_type() which will set the correct store type >> based on a walk of the tree. >> >> mas_prealloc_calc() is also introduced to abstract the calculation used >> to determine the number of nodes needed for a store operation. >> >> Also, add a test case to validate the ordering for store type checks is >> correct. This test models a vma expanding and then shrinking which is part >> of the boot process. >> >> mas_wr_preallocate() is introduced as a wrapper function to set the store >> type and preallcoate enough nodes. >> >> Signed-off-by: Sidhartha Kumar >> --- .................... >> diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c >> index f1caf4bcf937..c57979de1576 100644 >> --- a/tools/testing/radix-tree/maple.c >> +++ b/tools/testing/radix-tree/maple.c >> @@ -36223,6 +36223,37 @@ static noinline void __init check_mtree_dup(struct maple_tree *mt) >> >> extern void test_kmem_cache_bulk(void); >> >> + >> + /* test to simulate expanding a vma from [0x7fffffffe000, 0x7ffffffff000) >> + * to [0x7ffde4ca1000, 0x7ffffffff000) and then shrinking the vma to >> + * [0x7ffde4ca1000, 0x7ffde4ca2000) >> + */ >> +static inline int check_vma_modification(struct maple_tree *mt) >> +{ >> + MA_STATE(mas, mt, 0, 0); > > > Don't we need locking in here? Ya, I think I'm also missing a mas_destroy() at the end of this function. I'll add mt_lock()/mt_unlock() as well as mas_destroy(). Thanks, Sid > >> + >> + /* vma with old start and old end */ >> + __mas_set_range(&mas, 0x7fffffffe000, 0x7ffffffff000 - 1); >> + mas_preallocate(&mas, xa_mk_value(1), GFP_KERNEL); >> + mas_store_prealloc(&mas, xa_mk_value(1)); >> + >> + /* next write occurs partly in previous range [0, 0x7fffffffe000)*/ >> + mas_prev_range(&mas, 0); >> + /* expand vma to {0x7ffde4ca1000, 0x7ffffffff000) */ >> + __mas_set_range(&mas, 0x7ffde4ca1000, 0x7ffffffff000 - 1); >> + mas_preallocate(&mas, xa_mk_value(1), GFP_KERNEL); >> + mas_store_prealloc(&mas, xa_mk_value(1)); >> + >> + /* shrink vma to [0x7ffde4ca1000, 7ffde4ca2000) */ >> + __mas_set_range(&mas, 0x7ffde4ca2000, 0x7ffffffff000 - 1); >> + mas_preallocate(&mas, NULL, GFP_KERNEL); >> + mas_store_prealloc(&mas, NULL); >> + mt_dump(mt, mt_dump_hex); >> + >> + return 0; >> +} >> + >> + >> void farmer_tests(void) >> { >> struct maple_node *node; >> @@ -36230,6 +36261,10 @@ void farmer_tests(void) >> >> mt_dump(&tree, mt_dump_dec); >> >> + mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE | MT_FLAGS_LOCK_EXTERN | MT_FLAGS_USE_RCU); >> + check_vma_modification(&tree); >> + mtree_destroy(&tree); >> + >> tree.ma_root = xa_mk_value(0); >> mt_dump(&tree, mt_dump_dec); >> >> -- >> 2.45.1 >>