]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: root node could be handled by !p_slot too
authorWei Yang <richard.weiyang@gmail.com>
Fri, 13 Sep 2024 06:31:28 +0000 (06:31 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:08 +0000 (21:29 -0700)
commitf0046d01aa92b5439f8bde58e422aa0288cb2528
tree80480e4c3bcdce006872fd948c579b22c19ed68a
parent08c6cea3bd12dc251103408ac418bbdc1130a896
maple_tree: root node could be handled by !p_slot too

For a root node, mte_parent_slot() return 0, this exactly fits the
following !p_slot check.

So we can remove the special handling for root node.

Link: https://lkml.kernel.org/r/20240913063128.27391-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c