diff mbox series

[v2,1/2] maple_tree: remove maple_big_node.parent

Message ID 20240908140554.20378-2-richard.weiyang@gmail.com (mailing list archive)
State New
Headers show
Series Reduce the space to be cleared for maple_big_node | expand

Commit Message

Wei Yang Sept. 8, 2024, 2:05 p.m. UTC
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.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Liam R. Howlett <Liam.Howlett@Oracle.com>
---
 lib/maple_tree.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Liam R. Howlett Sept. 11, 2024, 12:35 a.m. UTC | #1
* Wei Yang <richard.weiyang@gmail.com> [240908 10:06]:
> 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.
> 
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> CC: Liam R. Howlett <Liam.Howlett@Oracle.com>

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

> ---
>  lib/maple_tree.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/lib/maple_tree.c b/lib/maple_tree.c
> index 4e08dd5e391b..c3370c7449c2 100644
> --- a/lib/maple_tree.c
> +++ b/lib/maple_tree.c
> @@ -120,7 +120,6 @@ static const unsigned char mt_min_slots[] = {
>  #define MAPLE_BIG_NODE_GAPS	(MAPLE_ARANGE64_SLOTS * 2 + 1)
>  
>  struct maple_big_node {
> -	struct maple_pnode *parent;
>  	unsigned long pivot[MAPLE_BIG_NODE_SLOTS - 1];
>  	union {
>  		struct maple_enode *slot[MAPLE_BIG_NODE_SLOTS];
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 4e08dd5e391b..c3370c7449c2 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -120,7 +120,6 @@  static const unsigned char mt_min_slots[] = {
 #define MAPLE_BIG_NODE_GAPS	(MAPLE_ARANGE64_SLOTS * 2 + 1)
 
 struct maple_big_node {
-	struct maple_pnode *parent;
 	unsigned long pivot[MAPLE_BIG_NODE_SLOTS - 1];
 	union {
 		struct maple_enode *slot[MAPLE_BIG_NODE_SLOTS];