mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
maple_tree: convert BUG_ON() to MT_BUG_ON()
Use MT_BUG_ON() to get more information when running with MAPLE_TREE_DEBUG enabled. Link: https://lkml.kernel.org/r/20230518145544.1722059-8-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>
This commit is contained in:
parent
f0a1f866ab
commit
0d7c52bb29
@ -194,7 +194,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user