mbox series

[v2,0/5] Some cleanups of maple tree

Message ID 20231120070937.35481-1-zhangpeng.00@bytedance.com (mailing list archive)
Headers show
Series Some cleanups of maple tree | expand

Message

Peng Zhang Nov. 20, 2023, 7:09 a.m. UTC
These are some small cleanups of maple tree.

Just to mention, in v1, I forgot to CC LKML, but it has been added in this
version.

Changes since v1:
  - Removed the 'return' statement from [1/5].
  - Made slight modifications to the commit log of [5/5].

v1: http://lists.infradead.org/pipermail/maple-tree/2023-November/003047.html

Peng Zhang (5):
  maple_tree: Move the check forward to avoid static check warning
  maple_tree: Avoid ascending when mas->min is also the parent's minimum
  maple_tree: Remove an unused parameter for ma_meta_end()
  maple_tree: Delete one of the two identical checks
  maple_tree: Simplify mas_leaf_set_meta()

 lib/maple_tree.c | 45 ++++++++++++++-------------------------------
 1 file changed, 14 insertions(+), 31 deletions(-)

Comments

Liam R. Howlett Nov. 20, 2023, 3:43 p.m. UTC | #1
* Peng Zhang <zhangpeng.00@bytedance.com> [231120 02:09]:
> These are some small cleanups of maple tree.
> 
> Just to mention, in v1, I forgot to CC LKML, but it has been added in this
> version.
> 
> Changes since v1:
>   - Removed the 'return' statement from [1/5].
>   - Made slight modifications to the commit log of [5/5].
> 
> v1: http://lists.infradead.org/pipermail/maple-tree/2023-November/003047.html

Thanks, they all look good now.

Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>

> 
> Peng Zhang (5):
>   maple_tree: Move the check forward to avoid static check warning
>   maple_tree: Avoid ascending when mas->min is also the parent's minimum
>   maple_tree: Remove an unused parameter for ma_meta_end()
>   maple_tree: Delete one of the two identical checks
>   maple_tree: Simplify mas_leaf_set_meta()
> 
>  lib/maple_tree.c | 45 ++++++++++++++-------------------------------
>  1 file changed, 14 insertions(+), 31 deletions(-)
> 
> -- 
> 2.20.1
>