maple_tree: remove maple_big_node.parent
authorWei Yang <richard.weiyang@gmail.com>
Sun, 8 Sep 2024 14:05:53 +0000 (14:05 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Nov 2024 00:56:24 +0000 (16:56 -0800)
commitf36ba810816182953af74d176e0644e38979b723
tree7245c86fcf179d9eddf5b85646d86beda9ff76b9
parent1c148069b240a3a65d1aee90c9d5c6997a747a7d
maple_tree: remove maple_big_node.parent

Patch series "Reduce the space to be cleared for maple_big_node", v2.

Found current code may clear maple_big_node redundantly.

First we define a field parent, which is never used.  After removing this,
we reduce the size of memory to be cleared by memset.

Then mast_fill_bnode() clears part of the structure twice, since slot and
gap share some space.  By clearing the whole structure, we can avoid this.

This patch (of 2):

The member parent of maple_big_node is never used.

Let's remove it which could reduce the number of space to be cleared on
memset.

Link: https://lkml.kernel.org/r/20240908140554.20378-1-richard.weiyang@gmail.com
Link: https://lkml.kernel.org/r/20240908140554.20378-2-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