From: Liam R. Howlett Date: Tue, 1 Mar 2022 16:29:05 +0000 (-0500) Subject: add bug on to mt X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=be20be1d699f55a5101452b6f7bb1461c9dafc2b;p=users%2Fjedix%2Flinux-maple.git add bug on to mt Signed-off-by: Liam R. Howlett --- 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; }