maple_tree: clean up mas_wr_append()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Sat, 19 Aug 2023 00:43:56 +0000 (20:43 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:32 +0000 (16:20 -0700)
commit432af5c966667f12c7af38fb3b2cd52eef0c47b4
tree2cc0048a65c224f1cb37ccc58a66033d9bd06b34
parent8f9ff2deb8b91ad1cba666c7adbe4ca79e2d3225
maple_tree: clean up mas_wr_append()

Avoid setting the variables until necessary, and actually use the
variables where applicable.  Introducing a variable for the slots array
avoids spanning multiple lines.

Add the missing argument to the documentation.

Use the node type when setting the metadata instead of blindly assuming
the type.

Finally, add a trace point to the function for successful store.

Link: https://lkml.kernel.org/r/20230819004356.1454718-3-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c