maple_tree: use mt_node_max() instead of direct operations mt_max[]
authorVernon Yang <vernon2gm@gmail.com>
Wed, 21 Dec 2022 06:00:54 +0000 (14:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:46 +0000 (17:12 -0800)
commitbd592703b81a95473f6a01fe731beccd0992236e
tree83fa2bdb911dd15e832191914810c4a1d29499ef
parentd56c593c8e128c42dc81707c07cbd5af41862214
maple_tree: use mt_node_max() instead of direct operations mt_max[]

Use mt_node_max() to get the maximum number of slots for a node,
rather than direct operations mt_max[], makes it better portability.

Link: https://lkml.kernel.org/r/20221221060058.609003-4-vernon2gm@gmail.com
Signed-off-by: Vernon Yang <vernon2gm@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c