]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Clean up mas_wr_node_store() 2025_10_15_nobignode
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 14 Oct 2025 20:58:02 +0000 (16:58 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 15 Oct 2025 20:17:51 +0000 (16:17 -0400)
commita6bf602c75c29079d3b656baf70fcc20ca6f1257
tree8c8f953ea6090b3aa62155ae0d24d72c53936e14
parent0a56612c79b0a568d430e9411d6613447c58fb6c
maple_tree: Clean up mas_wr_node_store()

The new_end does not need to be passed in as the data is already being
checked.  This allows for other areas to skip getting the node new_end
in the calling function.

The type was incorrectly void * instead of void __rcu *, which isn't an
issue but is technically incorrect.

Move the variable assignment to after the declarations to clean up the
initial setup.

Ensure there is something to copy before calling memcpy().

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c