diff options
author | 2023-07-11 11:54:42 +0800 | |
---|---|---|
committer | 2023-08-18 10:12:22 -0700 | |
commit | a489539e33c29b469bcd023a32c99078c2597c7c (patch) | |
tree | fc2e2652dea79180de335dbd54eec5a8a134004e /mm/page_ext.c | |
parent | maple_tree: make mas_validate_limits() check root node and node limit (diff) | |
download | wireguard-linux-a489539e33c29b469bcd023a32c99078c2597c7c.tar.xz wireguard-linux-a489539e33c29b469bcd023a32c99078c2597c7c.zip |
maple_tree: update mt_validate()
Instead of using mas_first_entry() to find the leftmost leaf, use a simple
loop instead. Remove an unneeded check for root node. To make the error
message more accurate, check pivots first and then slots, because checking
slots depend on the node limit pivot to break the loop.
Link: https://lkml.kernel.org/r/20230711035444.526-7-zhangpeng.00@bytedance.com
Signed-off-by: Peng Zhang <zhangpeng.00@bytedance.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_ext.c')
0 files changed, 0 insertions, 0 deletions