]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: convert mas_insert() to preallocate nodes
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Thu, 18 Jan 2024 20:20:43 +0000 (12:20 -0800)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Sat, 20 Apr 2024 01:40:09 +0000 (21:40 -0400)
commit5e91527f09a3862ff0f49eee86ab795ce816a77c
tree77d88412c8f93e099bc8aa65517e8062bc38731a
parenta427bf47f9f49deb05f7f080c291c03ba5c6d577
maple_tree: convert mas_insert() to preallocate nodes

By setting the store type in mas_insert(), we no longer need to use
mas_wr_modify() to determine the correct store function to use. Instead,
set the store type and call mas_wr_store_entry(). Also, pass in the
requested gfp flags to mas_insert() so they can be passed to the call to
mas_wr_preallocate().

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