]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Remove BUG_ON() from ma_meta_gap()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 1 Sep 2022 20:29:29 +0000 (16:29 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 2 Sep 2022 19:41:15 +0000 (15:41 -0400)
commit5b1c2bdecc3a98faf21f89a536f4329ca74789f1
treec3a18820a181573bc3c115dca4a75e82a1447108
parentb96fc90cbaae01a2d4e6759e103a3a3189552909
maple_tree: Remove BUG_ON() from ma_meta_gap()

Replace the in-function call to BUG_ON() with calls before the function
call MT_WARN_ON() to get more information on error conditions and to
avoid crashing - although the crash is imminent in this case.

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