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

The node end is set during the walk, so use the resulting end instead of
re-fetching it.

Link: https://lkml.kernel.org/r/20231101171629.3612299-7-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