]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Clear up index and last setting in single entry tree
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 3 Apr 2023 15:59:40 +0000 (11:59 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 2 May 2023 17:51:57 +0000 (13:51 -0400)
commit1a8e304489b773b1a0b837ef26fc0f37e031fbec
tree4f9f3ca781de5549947fab902ffe4732b6f7d858
parent51bea9bb30db176936a00021532269e6cd4e9a53
maple_tree: Clear up index and last setting in single entry tree

When there is a single entry tree (range of 0-0 pointing to an entry),
then ensure the limit is either 0-0 or 1-oo, depending on where the user
walks.  Ensure the correct node setting as well; either MAS_ROOT or
MAS_NONE.

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