From mboxrd@z Thu Jan 1 00:00:00 1970 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 92E8ECE7A89 for ; Mon, 25 Sep 2023 03:58:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 26C8F6B0170; Sun, 24 Sep 2023 23:58:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F6246B0172; Sun, 24 Sep 2023 23:58:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 06EEA6B0173; Sun, 24 Sep 2023 23:58:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E65BF6B0170 for ; Sun, 24 Sep 2023 23:58:15 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B52261A09B7 for ; Mon, 25 Sep 2023 03:58:15 +0000 (UTC) X-FDA: 81273762150.23.701293E Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by imf26.hostedemail.com (Postfix) with ESMTP id DE0A7140003 for ; Mon, 25 Sep 2023 03:58:13 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=Lvog2iQC; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf26.hostedemail.com: domain of zhangpeng.00@bytedance.com designates 209.85.167.169 as permitted sender) smtp.mailfrom=zhangpeng.00@bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695614293; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=F9a2wn71CT7l6jmeDgx5GiWCiAo5KcsAe/ofRJgEyKw=; b=d0zJSRMrlzJX5Yrn+/PECWBgqjUHYTgmpj1Bb/mnR0KUtPDpUYBREvg8Tpau4yUwS8rqso rdBG9PgsduwRCO/ZYy0+cpPcINN8443EFCaHTsSm/awALp7ZVaRSGATWn+Aa1bQbL+EDSr un90dvbFqIfyH6RiaghHNCkRfpoDL/8= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=Lvog2iQC; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf26.hostedemail.com: domain of zhangpeng.00@bytedance.com designates 209.85.167.169 as permitted sender) smtp.mailfrom=zhangpeng.00@bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695614293; a=rsa-sha256; cv=none; b=zwozst0z3tEqm2P9kP57otBPKkra4I7RUPDjnLp6XGspQLPoXjgqnqWfA43yNP8xHb1lwC Hyel56ChOS8xSXBQGiT4GvggY6nLHyHWR+argr9D3JbvXdTFPLHAu1AT9H1drI9dxL7QiP v/aCWokSaqdRkBIvmKbJpxSNemfyiRk= Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-3a76d882080so4059714b6e.2 for ; Sun, 24 Sep 2023 20:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1695614293; x=1696219093; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=F9a2wn71CT7l6jmeDgx5GiWCiAo5KcsAe/ofRJgEyKw=; b=Lvog2iQCnS07NPsEaPQVtBIVZRdX9MF1VFitZ/9HytdWzZwlr/j+qdm1fJNnCDUYTn o84MSNzyxK2sg/UY3VHVSK3YEokngdr5CD5axV88Wjuo4ftTouzR5F2jaf9vT11BPCHd G2vwgxYRBerVJhObOqEvs5yAgmjBMk6XUm89pippTk9Svb18y08s2i2jgWgbdS/AhjCN 0RDa2WUx0/A644eKYCpaaXJ4ORB+nQA9UJxxBTBmL30h17aXOcOzQGb7vkj7nOSy5e0w SzsKqrGOR9QaQuKFMmLCEFUXpvyZbf/izKpfrJV4qGfU6+Ok/ZxPamlk+OCsehfT/oZ6 SHUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695614293; x=1696219093; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F9a2wn71CT7l6jmeDgx5GiWCiAo5KcsAe/ofRJgEyKw=; b=ZDURrqikYkMqWasavC8YIAjDsq6+A6Lh/PP3OLSoTr4zMNw/+9KmuW4kY4dcLcD3L1 3TMd4EH84qofItnbkBXVU95yQ8UbNKHdl7HDOnKP0Mgmkb+GcJ5gvpXQED1VAonyFaLg jE1uN2yysS4nX0TyXJmhoYl+wZFG6uluxfR7AhzQYTi2qnaW50VHiaPboJimciFT+vD9 FMmdmyQgKCpcnnzntmBQyLbqQtdSibGD35H9BEKgx4EHK5KpGcZXXzXk0z0VcMuYO5AB MfrzLAXRPg5cvdJO8PcdEWICF0NIcwOhMKIaq4z6EWxMQZaVWErI5h3JYwcL5kDCtX0Y f3sg== X-Gm-Message-State: AOJu0YydiVxD/PwYQFHl1Kf2MybI+a7AQXPkTojll1XYgfbrnGLyV55g 9pXj+CVc6Rrm1daGS6CIAkZ4ew== X-Google-Smtp-Source: AGHT+IHd1Pu1jcgTttSe7sFRwiGzS3UAk4+xEgzmMAEerGfTYzKcYv0T2Mw2kSYstvH9RBeTT2rVsQ== X-Received: by 2002:a05:6808:308d:b0:3a5:cc7d:3d66 with SMTP id bl13-20020a056808308d00b003a5cc7d3d66mr8190041oib.49.1695614293016; Sun, 24 Sep 2023 20:58:13 -0700 (PDT) Received: from GL4FX4PXWL.bytedance.net ([203.208.167.146]) by smtp.gmail.com with ESMTPSA id fm1-20020a056a002f8100b00679a4b56e41sm7025387pfb.43.2023.09.24.20.58.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 24 Sep 2023 20:58:12 -0700 (PDT) From: Peng Zhang To: Liam.Howlett@oracle.com, corbet@lwn.net, akpm@linux-foundation.org, willy@infradead.org, brauner@kernel.org, surenb@google.com, michael.christie@oracle.com, mjguzik@gmail.com, mathieu.desnoyers@efficios.com, npiggin@gmail.com, peterz@infradead.org, oliver.sang@intel.com Cc: zhangpeng.00@bytedance.com, maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v3 4/9] maple_tree: Add test for mtree_dup() Date: Mon, 25 Sep 2023 11:56:12 +0800 Message-Id: <20230925035617.84767-5-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20230925035617.84767-1-zhangpeng.00@bytedance.com> References: <20230925035617.84767-1-zhangpeng.00@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: DE0A7140003 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: i5zi1eayh4ihq3yzot8pi1oid75mfqfs X-HE-Tag: 1695614293-944320 X-HE-Meta: U2FsdGVkX18L4XEgRO535G6RFxepM2iH27FmVDfujiV9O09ZkEGWhEh2MUW4E8hDNLLYhuJCu9yVzO0jueL7sqofWosmlXe6K7bdTOH3wfVgWYgm2kHWgOEFycwBCAhBBKBPvB2S38q7jBXY0kkx9oU3IFdJ+hc+LsCh4JTlbcaqqNdlA3mG7R+K5H+zljNE7YCb9Bj618zVaZpQkc4DiBLmPAm0kaXHyqsGlqDp6e3lb35qjFaEEzwAdle3+SkNiv1jHcLDSwdfqIozzSaRpEpjDCoRCHh+qLJ3QESKX+2yZvjB6kS1sxveRfjgzTilNvQUqo8OenZk+WZX5uYFEinxZ/Sp8QAVrFWCt1z2NjMVJsQ8WYYKwiZZPGu7ZlsXtqFpoX0fDly/EgD8heKwSvwev4Wwf1Uk/C4sWAgpqI9VhCemfJg6mH6y7nhaEdPVgbiRoWm2vHBCiR1r9+1FRlb36vlFqaYhZ7g9qOpOzTx+xkbYn8NjPNEVI+qQ6MNTjMUPgHUx8oELJDISTLwnxlZSGi9K4v86q1dsMJ4BiquF5CNuWTuaWcnWgf4aGefGAdtvJLtK0l9ignxQsJidK3TgWqFQt9Qf/K/p+3w+A9HZDIpiSES+0K1U2klbzM6JAwtfZsIO6dffht3CnEvyG3G4XrMyO9bHXX8c1M0TQjKKb9yH3vjPJf3YssZqyHTTwvN7gFuE1gsZgU6cqaXr11KLDTA54nbUabI2FyVLz5Z0UKTlwzX7NnLs0tbjSkflDUbL616pdEG8/HzbEihA5H6niQUvzM+pQWlZRgbkTsKocewhqiojc6cudEX9iVoFeBSqgIwzZWYivDCC59Xqha6fyI2RQmqEeQ5/E/KLJiRJn+wpnrQRikGP36rPM6ZdWM4JJ2NjzZkqbMrAaDmVpTMedHiq1+SzGRnV0ZTjs6htnJU3PaZ6a90tZY7Eq7aYZ/+alhpos/QEiCHkClx CbeGeOv+ gv3LRzAwFDp05qzuC2a89pCXL6EBHXdV8w+qMQJv83OFj+3OWGpR7MLKFfKTceqxW1jKDwzZFytWrL/Q3xIgwsLBsDOAs+oB4IYIz36I7UgIRXtVlcmmTGrQTuRZ9kK/RSNCsGc9h7ESe5O1WZtxZfx7lKCE0jAd/+neW0uiwJ6N3iIZarRztXJ6T3oyLGOBwRY/alqE6PL5nFLYC5HkxeKgRaXesEU/C+MHkUcn04vVfy/L8oxZvgW9byPfHckETpJSSqXfrAPj1Gv3Tu3x/D0zEkt5I9RupvBsA+qNYRyZyaBjIjGWNkO8RRgbSD0EqAdG1lESbI6ZCugwT+qxxSk80JCoeHx9hL2uFlmuqMbcOGhOehffLJ6Iw3PXPGHocjvvf/MJTJXhwzu/zCPStrLtnNCeLTMOMNZDjhPD5NSrmGLAV5SnN2S+flQVWW9Tv+T/mMwF9SoJ22SoWLYEhmrl3HQ== 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: Add test for mtree_dup(). Test by duplicating different maple trees and then comparing the two trees. Includes tests for duplicating full trees and memory allocation failures on different nodes. Signed-off-by: Peng Zhang --- tools/testing/radix-tree/maple.c | 361 +++++++++++++++++++++++++++++++ 1 file changed, 361 insertions(+) diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index e5da1cad70ba..12b3390e9591 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -35857,6 +35857,363 @@ static noinline void __init check_locky(struct maple_tree *mt) mt_clear_in_rcu(mt); } +/* + * Compares two nodes except for the addresses stored in the nodes. + * Returns zero if they are the same, otherwise returns non-zero. + */ +static int __init compare_node(struct maple_enode *enode_a, + struct maple_enode *enode_b) +{ + struct maple_node *node_a, *node_b; + struct maple_node a, b; + void **slots_a, **slots_b; /* Do not use the rcu tag. */ + enum maple_type type; + int i; + + if (((unsigned long)enode_a & MAPLE_NODE_MASK) != + ((unsigned long)enode_b & MAPLE_NODE_MASK)) { + pr_err("The lower 8 bits of enode are different.\n"); + return -1; + } + + type = mte_node_type(enode_a); + node_a = mte_to_node(enode_a); + node_b = mte_to_node(enode_b); + a = *node_a; + b = *node_b; + + /* Do not compare addresses. */ + if (ma_is_root(node_a) || ma_is_root(node_b)) { + a.parent = (struct maple_pnode *)((unsigned long)a.parent & + MA_ROOT_PARENT); + b.parent = (struct maple_pnode *)((unsigned long)b.parent & + MA_ROOT_PARENT); + } else { + a.parent = (struct maple_pnode *)((unsigned long)a.parent & + MAPLE_NODE_MASK); + b.parent = (struct maple_pnode *)((unsigned long)b.parent & + MAPLE_NODE_MASK); + } + + if (a.parent != b.parent) { + pr_err("The lower 8 bits of parents are different. %p %p\n", + a.parent, b.parent); + return -1; + } + + /* + * If it is a leaf node, the slots do not contain the node address, and + * no special processing of slots is required. + */ + if (ma_is_leaf(type)) + goto cmp; + + slots_a = ma_slots(&a, type); + slots_b = ma_slots(&b, type); + + for (i = 0; i < mt_slots[type]; i++) { + if (!slots_a[i] && !slots_b[i]) + break; + + if (!slots_a[i] || !slots_b[i]) { + pr_err("The number of slots is different.\n"); + return -1; + } + + /* Do not compare addresses in slots. */ + ((unsigned long *)slots_a)[i] &= MAPLE_NODE_MASK; + ((unsigned long *)slots_b)[i] &= MAPLE_NODE_MASK; + } + +cmp: + /* + * Compare all contents of two nodes, including parent (except address), + * slots (except address), pivots, gaps and metadata. + */ + return memcmp(&a, &b, sizeof(struct maple_node)); +} + +/* + * Compare two trees and return 0 if they are the same, non-zero otherwise. + */ +static int __init compare_tree(struct maple_tree *mt_a, struct maple_tree *mt_b) +{ + MA_STATE(mas_a, mt_a, 0, 0); + MA_STATE(mas_b, mt_b, 0, 0); + + if (mt_a->ma_flags != mt_b->ma_flags) { + pr_err("The flags of the two trees are different.\n"); + return -1; + } + + mas_dfs_preorder(&mas_a); + mas_dfs_preorder(&mas_b); + + if (mas_is_ptr(&mas_a) || mas_is_ptr(&mas_b)) { + if (!(mas_is_ptr(&mas_a) && mas_is_ptr(&mas_b))) { + pr_err("One is MAS_ROOT and the other is not.\n"); + return -1; + } + return 0; + } + + while (!mas_is_none(&mas_a) || !mas_is_none(&mas_b)) { + + if (mas_is_none(&mas_a) || mas_is_none(&mas_b)) { + pr_err("One is MAS_NONE and the other is not.\n"); + return -1; + } + + if (mas_a.min != mas_b.min || + mas_a.max != mas_b.max) { + pr_err("mas->min, mas->max do not match.\n"); + return -1; + } + + if (compare_node(mas_a.node, mas_b.node)) { + pr_err("The contents of nodes %p and %p are different.\n", + mas_a.node, mas_b.node); + mt_dump(mt_a, mt_dump_dec); + mt_dump(mt_b, mt_dump_dec); + return -1; + } + + mas_dfs_preorder(&mas_a); + mas_dfs_preorder(&mas_b); + } + + return 0; +} + +static __init void mas_subtree_max_range(struct ma_state *mas) +{ + unsigned long limit = mas->max; + MA_STATE(newmas, mas->tree, 0, 0); + void *entry; + + mas_for_each(mas, entry, limit) { + if (mas->last - mas->index >= + newmas.last - newmas.index) { + newmas = *mas; + } + } + + *mas = newmas; +} + +/* + * build_full_tree() - Build a full tree. + * @mt: The tree to build. + * @flags: Use @flags to build the tree. + * @height: The height of the tree to build. + * + * Build a tree with full leaf nodes and internal nodes. Note that the height + * should not exceed 3, otherwise it will take a long time to build. + * Return: zero if the build is successful, non-zero if it fails. + */ +static __init int build_full_tree(struct maple_tree *mt, unsigned int flags, + int height) +{ + MA_STATE(mas, mt, 0, 0); + unsigned long step; + int ret = 0, cnt = 1; + enum maple_type type; + + mt_init_flags(mt, flags); + mtree_insert_range(mt, 0, ULONG_MAX, xa_mk_value(5), GFP_KERNEL); + + mtree_lock(mt); + + while (1) { + mas_set(&mas, 0); + if (mt_height(mt) < height) { + mas.max = ULONG_MAX; + goto store; + } + + while (1) { + mas_dfs_preorder(&mas); + if (mas_is_none(&mas)) + goto unlock; + + type = mte_node_type(mas.node); + if (mas_data_end(&mas) + 1 < mt_slots[type]) { + mas_set(&mas, mas.min); + goto store; + } + } +store: + mas_subtree_max_range(&mas); + step = mas.last - mas.index; + if (step < 1) { + ret = -1; + goto unlock; + } + + step /= 2; + mas.last = mas.index + step; + mas_store_gfp(&mas, xa_mk_value(5), + GFP_KERNEL); + ++cnt; + } +unlock: + mtree_unlock(mt); + + MT_BUG_ON(mt, mt_height(mt) != height); + /* pr_info("height:%u number of elements:%d\n", mt_height(mt), cnt); */ + return ret; +} + +static noinline void __init check_mtree_dup(struct maple_tree *mt) +{ + DEFINE_MTREE(new); + int i, j, ret, count = 0; + unsigned int rand_seed = 17, rand; + + /* store a value at [0, 0] */ + mt_init_flags(mt, 0); + mtree_store_range(mt, 0, 0, xa_mk_value(0), GFP_KERNEL); + ret = mtree_dup(mt, &new, GFP_KERNEL); + MT_BUG_ON(&new, ret); + mt_validate(&new); + if (compare_tree(mt, &new)) + MT_BUG_ON(&new, 1); + + mtree_destroy(mt); + mtree_destroy(&new); + + /* The two trees have different attributes. */ + mt_init_flags(mt, 0); + mt_init_flags(&new, MT_FLAGS_ALLOC_RANGE); + ret = mtree_dup(mt, &new, GFP_KERNEL); + MT_BUG_ON(&new, ret != -EINVAL); + mtree_destroy(mt); + mtree_destroy(&new); + + /* The new tree is not empty */ + mt_init_flags(mt, 0); + mt_init_flags(&new, 0); + mtree_store(&new, 5, xa_mk_value(5), GFP_KERNEL); + ret = mtree_dup(mt, &new, GFP_KERNEL); + MT_BUG_ON(&new, ret != -EINVAL); + mtree_destroy(mt); + mtree_destroy(&new); + + /* Test for duplicating full trees. */ + for (i = 1; i <= 3; i++) { + ret = build_full_tree(mt, 0, i); + MT_BUG_ON(mt, ret); + mt_init_flags(&new, 0); + + ret = mtree_dup(mt, &new, GFP_KERNEL); + MT_BUG_ON(&new, ret); + mt_validate(&new); + if (compare_tree(mt, &new)) + MT_BUG_ON(&new, 1); + + mtree_destroy(mt); + mtree_destroy(&new); + } + + for (i = 1; i <= 3; i++) { + ret = build_full_tree(mt, MT_FLAGS_ALLOC_RANGE, i); + MT_BUG_ON(mt, ret); + mt_init_flags(&new, MT_FLAGS_ALLOC_RANGE); + + ret = mtree_dup(mt, &new, GFP_KERNEL); + MT_BUG_ON(&new, ret); + mt_validate(&new); + if (compare_tree(mt, &new)) + MT_BUG_ON(&new, 1); + + mtree_destroy(mt); + mtree_destroy(&new); + } + + /* Test for normal duplicating. */ + for (i = 0; i < 1000; i += 3) { + if (i & 1) { + mt_init_flags(mt, 0); + mt_init_flags(&new, 0); + } else { + mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); + mt_init_flags(&new, MT_FLAGS_ALLOC_RANGE); + } + + for (j = 0; j < i; j++) { + mtree_store_range(mt, j * 10, j * 10 + 5, + xa_mk_value(j), GFP_KERNEL); + } + + ret = mtree_dup(mt, &new, GFP_KERNEL); + MT_BUG_ON(&new, ret); + mt_validate(&new); + if (compare_tree(mt, &new)) + MT_BUG_ON(&new, 1); + + mtree_destroy(mt); + mtree_destroy(&new); + } + + /* Test memory allocation failed. */ + mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); + for (i = 0; i < 30; i += 3) { + mtree_store_range(mt, j * 10, j * 10 + 5, + xa_mk_value(j), GFP_KERNEL); + } + + /* Failed at the first node. */ + mt_init_flags(&new, MT_FLAGS_ALLOC_RANGE); + mt_set_non_kernel(0); + ret = mtree_dup(mt, &new, GFP_NOWAIT); + mt_set_non_kernel(0); + MT_BUG_ON(&new, ret != -ENOMEM); + mtree_destroy(mt); + mtree_destroy(&new); + + /* Random maple tree fails at a random node. */ + for (i = 0; i < 1000; i += 3) { + if (i & 1) { + mt_init_flags(mt, 0); + mt_init_flags(&new, 0); + } else { + mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); + mt_init_flags(&new, MT_FLAGS_ALLOC_RANGE); + } + + for (j = 0; j < i; j++) { + mtree_store_range(mt, j * 10, j * 10 + 5, + xa_mk_value(j), GFP_KERNEL); + } + /* + * The rand() library function is not used, so we can generate + * the same random numbers on any platform. + */ + rand_seed = rand_seed * 1103515245 + 12345; + rand = rand_seed / 65536 % 128; + mt_set_non_kernel(rand); + + ret = mtree_dup(mt, &new, GFP_NOWAIT); + mt_set_non_kernel(0); + if (ret != 0) { + MT_BUG_ON(&new, ret != -ENOMEM); + count++; + mtree_destroy(mt); + continue; + } + + mt_validate(&new); + if (compare_tree(mt, &new)) + MT_BUG_ON(&new, 1); + + mtree_destroy(mt); + mtree_destroy(&new); + } + + /* pr_info("mtree_dup() fail %d times\n", count); */ + BUG_ON(!count); +} + extern void test_kmem_cache_bulk(void); void farmer_tests(void) @@ -35904,6 +36261,10 @@ void farmer_tests(void) check_null_expand(&tree); mtree_destroy(&tree); + mt_init_flags(&tree, 0); + check_mtree_dup(&tree); + mtree_destroy(&tree); + /* RCU testing */ mt_init_flags(&tree, 0); check_erase_testset(&tree); -- 2.20.1