+3
−9
+21
−0
Loading
mainline inclusion from mainline-v6.8-rc1 commit 24662decdd44645e8f027d7912be962dd461d1aa category: performance bugzilla: https://gitee.com/openeuler/kernel/issues/I9EHBO CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=24662decdd44645e8f027d7912be962dd461d1aa -------------------------------- Since the pivot being set is now reliable, the optimized loop no longer needs to find the node end. The redundant check for a dead node can also be avoided as there is no danger of using the wrong pivot since the results will be thrown out in the case of a dead node by the later check. This patch also adds a benchmark test for the function to the maple tree test framework. The benchmark shows an average increase performance of 5.98% over 3 runs with this commit. Link: https://lkml.kernel.org/r/20231101171629.3612299-12-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> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com>