]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: remove unneeded mas_wr_walk() in mas_store_prealloc()
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Wed, 31 Jan 2024 19:16:32 +0000 (11:16 -0800)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Sat, 20 Apr 2024 01:40:09 +0000 (21:40 -0400)
commite3a482b4e8a5fe846082d93e8ea5ca8ec94be4d5
tree112296ce322a58dbccbe8b2fdf23ae9cb087ef9f
parent04d696fe1825d87be02c5160bd85165289bbd711
maple_tree: remove unneeded mas_wr_walk() in mas_store_prealloc()

Users of mas_store_prealloc() enter this function with nodes already
preallocated. This means the store type must be already set. We can then
remove the call to mas_wr_store_type() and initialize the write state to
continue the partial walk that was done when determining the store type.

Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
lib/maple_tree.c