]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: use cached node end in mas_next()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 1 Nov 2023 17:16:22 +0000 (13:16 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:21 +0000 (13:16 -0800)
commit3cc9f4bcd554ff72225d90e6626f12f4cb734ee6
tree1eb74e2bd6b786da50ae665886b6b2d6cc09df8e
parentab1d471699ed7a88e442ac3b6fb4c5747f298d58
maple_tree: use cached node end in mas_next()

When looking for the next entry, don't recalculate the node end as it is
now tracked in the maple state.

Link: https://lkml.kernel.org/r/20231101171629.3612299-6-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c