]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Don't reset depth.
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 15 Sep 2021 00:09:23 +0000 (20:09 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 15 Sep 2021 00:09:23 +0000 (20:09 -0400)
MAS_START requires the mas_start() to be used which resets depth.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
include/linux/maple_tree.h

index b77e03e3a65a5b54b72bbc9f64da5a43a70b72a4..2be19d5fd7cb1222f1fc927398a9fa464456c6d5 100644 (file)
@@ -350,7 +350,6 @@ void mas_set_range(struct ma_state *mas, unsigned long start, unsigned long last
               mas->index = start;
               mas->last = last;
               mas->node = MAS_START;
-              mas->depth = 0;
 }
 
 /**