maple_tree: add format option to mt_dump()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 18 May 2023 14:55:14 +0000 (10:55 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:28 +0000 (16:25 -0700)
commit89f499f35c11af61ba7075ddc23209d10805a25a
tree1623b290f3aa7a8d348bc30fcd117ee51e2f06cb
parentc3eb787e88e486eefcfafbf990df32c75018ca92
maple_tree: add format option to mt_dump()

Allow different formatting strings to be used when dumping the tree.
Currently supports hex and decimal.

Link: https://lkml.kernel.org/r/20230518145544.1722059-6-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>
include/linux/maple_tree.h
lib/maple_tree.c
lib/test_maple_tree.c
mm/internal.h
mm/mmap.c
tools/testing/radix-tree/maple.c