]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Combine mas_parent_gap() into mas_update_gap() new_split
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sat, 30 Nov 2024 04:54:58 +0000 (23:54 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 4 Dec 2024 20:36:52 +0000 (15:36 -0500)
commit33b4eaea7f00a82a0ee986dd0e5cb11f8c05b102
treea1381984e0c5ca98727efad4273a5568181cafc7
parent501ab1bf724564a8c318e8007ca6024b3c384de6
maple_tree: Combine mas_parent_gap() into mas_update_gap()

mas_parent_gap() is used in one location and a lot of what is needed already
exists in the calling function.  Inline the function and dropping the
duplication simplifies the code and reduces the instruction count.

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