]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Clean up mas_wr_node_store() clean_bignode
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>
Tue, 14 Oct 2025 20:58:02 +0000 (16:58 -0400)
commit71f0bd71a0696a862bf884d8ec0d51fbb24d4a98
tree924f379e140caf378801ecec55e555ad45c27444
parenta050ae0678d8f33016e36b90b191001c41ff2e11
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 it 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