maple_tree: add test for mas_wr_modify() fast path
authorPeng Zhang <zhangpeng.00@bytedance.com>
Wed, 28 Jun 2023 07:36:54 +0000 (15:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:05 +0000 (10:12 -0700)
commitd6e8d0dc19a3ebea185cd8e99f2e960d81b153ad
treea7154054346d4ac8969a1d437fdcb11b7c7ba1fb
parentf04d16ee3afc049cdfa99500d95dee8b0eb77cfa
maple_tree: add test for mas_wr_modify() fast path

Patch series "Optimize the fast path of mas_store()", v4.

Add fast paths for mas_wr_append() and mas_wr_slot_store() respectively.
The newly added fast path of mas_wr_append() is used in fork() and how
much it benefits fork() depends on how many VMAs are duplicated.

Thanks Liam for the review.

This patch (of 4):

Add tests for all cases of mas_wr_append() and mas_wr_slot_store().

Link: https://lkml.kernel.org/r/20230628073657.75314-1-zhangpeng.00@bytedance.com
Link: https://lkml.kernel.org/r/20230628073657.75314-2-zhangpeng.00@bytedance.com
Signed-off-by: Peng Zhang <zhangpeng.00@bytedance.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_maple_tree.c