]> git.ipfire.org Git - thirdparty/linux.git/commit - lib/maple_tree.c
maple_tree: rework mtree_alloc_{range,rrange}()
authorPeng Zhang <zhangpeng.00@bytedance.com>
Wed, 24 May 2023 03:12:38 +0000 (11:12 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:43 +0000 (16:25 -0700)
commit523716770e63e229dbb6307d663f03d990dfefc5
tree585aadfc4b3bf7d2ecba035d21ae475f7bab2f36
parente0e0b4126c1f1effd480777507a61bd09360dc8f
maple_tree: rework mtree_alloc_{range,rrange}()

Patch series "Clean ups for maple tree", v4.

Some clean ups, mainly to make the code of maple tree more concise.
This patchset has passed the self-test.

This patch (of 10):

Use mas_empty_area{_rev}() to refactor mtree_alloc_{range,rrange}()

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