]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Always split regardless of spanning node boundaries or not.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 24 Feb 2020 15:11:39 +0000 (10:11 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:22 +0000 (12:28 -0500)
commit4748c5d687a4d4e8f20fcace596299e5cee0cb8e
treefa4a68e4a44bd827b6966961b1db4eac6553f578
parentc58b9bf4c367ae2f4feb46c63b2bbce30e835808
maple_tree: Always split regardless of spanning node boundaries or not.

Spanning node boundaries are now considered when calculating the number
of elements in a node, so if the count is larger than what the node will
hold, the node needs to be split.

set20 in test_maple_tree caught this issue.

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