maple_tree: convert debug code to use MT_WARN_ON() and MAS_WARN_ON()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 18 May 2023 14:55:18 +0000 (10:55 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:29 +0000 (16:25 -0700)
commite6d6792a5c5156c60e9e4fea7d3bd5c5fec4d872
treec9e56ff6ee7e0b4bf10229676fa4e1a4eb5d33ca
parent7f2f9dc16fee59afdec2df8c794e97c36e387257
maple_tree: convert debug code to use MT_WARN_ON() and MAS_WARN_ON()

Using MT_WARN_ON() allows for the removal of if statements before logging.
Using MAS_WARN_ON() will provide more information when issues are
encountered.

Link: https://lkml.kernel.org/r/20230518145544.1722059-10-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: David Binderman <dcb314@hotmail.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Vernon Yang <vernon2gm@gmail.com>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c