From e7d6979c4f246987df88acd7d343afc24b763740 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 14 Jan 2020 11:22:05 -0500 Subject: [PATCH] maple_tree: cleanup Signed-off-by: Liam R. Howlett --- lib/test_maple_tree.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c index 5a8e6f37accf..adca5baf26ca 100644 --- a/lib/test_maple_tree.c +++ b/lib/test_maple_tree.c @@ -1616,6 +1616,21 @@ STORE, 47708488638464, 47708488642560, STORE, 47708488642560, 47708488646656, }; + unsigned long set9[] = { +STORE, 140737488347136, 140737488351232, +STORE, 140726853324800, 140737488351232, +ERASE, 140726853324800, 140737488351232, +STORE, 140726853324800, 140726853328896, +STORE, 94868882362368, 94868882534400, +ERASE, 94868882362368, 94868882534400, +STORE, 94868882362368, 94868882378752, +STORE, 94868882378752, 94868882534400, +ERASE, 94868882378752, 94868882534400, +STORE, 94868882378752, 94868882481152, +STORE, 94868882481152, 94868882522112, +STORE, 94868882522112, 94868882534400, + }; + mt_set_non_kernel(3); check_erase2_testset(mt, set, ARRAY_SIZE(set)); mtree_destroy(mt); @@ -1659,6 +1674,12 @@ STORE, 47708488642560, 47708488646656, check_erase2_testset(mt, set8, ARRAY_SIZE(set8)); mtree_destroy(mt); + mtree_init(mt, 0); + check_erase2_testset(mt, set9, ARRAY_SIZE(set9)); + mt_dump(mt); + mtree_destroy(mt); + exit(0); + } static noinline void check_alloc_rev_range(struct maple_tree *mt) { -- 2.50.1