]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Convert BUG_ON() to MT_BUG_ON()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 31 Aug 2022 18:55:26 +0000 (14:55 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:22:36 +0000 (16:22 -0500)
Use MT_BUG_ON() to get more information when running with
MAPLE_TREE_DEBUG enabled.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index 84ad9e65a71cdebf32a13b8975f09af8bf9f7b92..2a58fe0c2e4c8fd24b7744ae5c77df3466daaa52 100644 (file)
@@ -189,7 +189,7 @@ static void mas_set_height(struct ma_state *mas)
        unsigned int new_flags = mas->tree->ma_flags;
 
        new_flags &= ~MT_FLAGS_HEIGHT_MASK;
-       BUG_ON(mas->depth > MAPLE_HEIGHT_MAX);
+       MT_BUG_ON(mas->tree, mas->depth > MAPLE_HEIGHT_MAX);
        new_flags |= mas->depth << MT_FLAGS_HEIGHT_OFFSET;
        mas->tree->ma_flags = new_flags;
 }