File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -2498,6 +2498,25 @@ static noinline void check_dup(struct maple_tree *mt)
2498
2498
}
2499
2499
}
2500
2500
2501
+ static noinline void check_bnode_min_spanning (struct maple_tree * mt )
2502
+ {
2503
+ int i = 50 ;
2504
+ MA_STATE (mas , mt , 0 , 0 );
2505
+
2506
+ mt_set_non_kernel (9999 );
2507
+ mas_lock (& mas );
2508
+ do {
2509
+ mas_set_range (& mas , i * 10 , i * 10 + 9 );
2510
+ mas_store (& mas , check_bnode_min_spanning );
2511
+ } while (i -- );
2512
+
2513
+ mas_set_range (& mas , 240 , 509 );
2514
+ mas_store (& mas , NULL );
2515
+ mas_unlock (& mas );
2516
+ mas_destroy (& mas );
2517
+ mt_set_non_kernel (0 );
2518
+ }
2519
+
2501
2520
static DEFINE_MTREE (tree );
2502
2521
static int maple_tree_seed (void )
2503
2522
{
@@ -2742,6 +2761,10 @@ static int maple_tree_seed(void)
2742
2761
check_dup (& tree );
2743
2762
mtree_destroy (& tree );
2744
2763
2764
+ mt_init_flags (& tree , MT_FLAGS_ALLOC_RANGE );
2765
+ check_bnode_min_spanning (& tree );
2766
+ mtree_destroy (& tree );
2767
+
2745
2768
#if defined(BENCH )
2746
2769
skip :
2747
2770
#endif
You can’t perform that action at this time.
0 commit comments