]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Combine mas_parent_gap() into mas_update_gap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sat, 30 Nov 2024 04:54:58 +0000 (23:54 -0500)
committerLiam R. Howlett <howlett@gmail.com>
Mon, 27 Jan 2025 20:43:13 +0000 (15:43 -0500)
commit56153f27db38f34758f9b46e5f7f82b6319d7fe5
treece1df6b24b02c4c61d3387425e0fa8ade09e2708
parent3a20a605324c6490d20e42e82fdca52c220e645c
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