diff options
author | Peng Zhang <zhangpeng.00@bytedance.com> | 2023-07-11 06:54:42 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-18 20:12:22 +0300 |
commit | a489539e33c29b469bcd023a32c99078c2597c7c (patch) | |
tree | fc2e2652dea79180de335dbd54eec5a8a134004e /Documentation/s390 | |
parent | 33af39d0244ce4944ab16728f7b04df9dfc6d365 (diff) | |
download | linux-a489539e33c29b469bcd023a32c99078c2597c7c.tar.xz |
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 'Documentation/s390')
0 files changed, 0 insertions, 0 deletions