From be20be1d699f55a5101452b6f7bb1461c9dafc2b Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 1 Mar 2022 11:29:05 -0500 Subject: [PATCH] add bug on to mt Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 37717fbe6470..ed1cfda311f4 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -906,6 +906,7 @@ static inline unsigned char ma_meta_end(struct maple_node *mn, static inline unsigned char ma_meta_gap(struct maple_node *mn, enum maple_type mt) { + BUG_ON(mt != maple_arange_64); return mn->ma64.meta.gap; } -- 2.50.1