File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -7566,14 +7566,14 @@ static void mt_validate_nulls(struct maple_tree *mt)
7566
7566
* 2. The gap is correctly set in the parents
7567
7567
*/
7568
7568
void mt_validate (struct maple_tree * mt )
7569
+ __must_hold (mas - > tree - > ma_lock )
7569
7570
{
7570
7571
unsigned char end ;
7571
7572
7572
7573
MA_STATE (mas , mt , 0 , 0 );
7573
- rcu_read_lock ();
7574
7574
mas_start (& mas );
7575
7575
if (!mas_is_active (& mas ))
7576
- goto done ;
7576
+ return ;
7577
7577
7578
7578
while (!mte_is_leaf (mas .node ))
7579
7579
mas_descend (& mas );
@@ -7594,9 +7594,6 @@ void mt_validate(struct maple_tree *mt)
7594
7594
mas_dfs_postorder (& mas , ULONG_MAX );
7595
7595
}
7596
7596
mt_validate_nulls (mt );
7597
- done :
7598
- rcu_read_unlock ();
7599
-
7600
7597
}
7601
7598
EXPORT_SYMBOL_GPL (mt_validate );
7602
7599
You can’t perform that action at this time.
0 commit comments