diff mbox series

[v2,36/36] maple_tree: Add gap to check_alloc_rev_range() testcase

Message ID 20230505174204.2665599-37-Liam.Howlett@oracle.com (mailing list archive)
State New
Headers show
Series Maple tree mas_{next,prev}_range() and cleanup | expand

Commit Message

Liam R. Howlett May 5, 2023, 5:42 p.m. UTC
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
---
 lib/test_maple_tree.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Liam R. Howlett May 5, 2023, 7:29 p.m. UTC | #1
Ah, I meant to squash this into patch 0025 "maple_tree: Revise limit
checks in mas_empty_area{_rev}()" of this series.

Apologies for the lack of commit message.

* Liam R. Howlett <Liam.Howlett@oracle.com> [230505 13:45]:
> Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
> ---
>  lib/test_maple_tree.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c
> index aa3c4fb9175ed..9939be34e516e 100644
> --- a/lib/test_maple_tree.c
> +++ b/lib/test_maple_tree.c
> @@ -804,6 +804,7 @@ static noinline void __init check_alloc_rev_range(struct maple_tree *mt)
>  
>  	mt_set_non_kernel(1);
>  	mtree_erase(mt, 34148798727); /* create a deleted range. */
> +	mtree_erase(mt, 34148798725);
>  	check_mtree_alloc_rrange(mt, 0, 34359052173, 210253414,
>  			34148798725, 0, mt);
>  
> -- 
> 2.39.2
>
Andrew Morton May 5, 2023, 7:57 p.m. UTC | #2
On Fri, 5 May 2023 15:29:29 -0400 "Liam R. Howlett" <Liam.Howlett@Oracle.com> wrote:

> Ah, I meant to squash this into patch 0025 "maple_tree: Revise limit
> checks in mas_empty_area{_rev}()" of this series.
> 

I made that change.
diff mbox series

Patch

diff --git a/lib/test_maple_tree.c b/lib/test_maple_tree.c
index aa3c4fb9175ed..9939be34e516e 100644
--- a/lib/test_maple_tree.c
+++ b/lib/test_maple_tree.c
@@ -804,6 +804,7 @@  static noinline void __init check_alloc_rev_range(struct maple_tree *mt)
 
 	mt_set_non_kernel(1);
 	mtree_erase(mt, 34148798727); /* create a deleted range. */
+	mtree_erase(mt, 34148798725);
 	check_mtree_alloc_rrange(mt, 0, 34359052173, 210253414,
 			34148798725, 0, mt);