Skip to contentSkip to conversation

maple_tree: remove struct maple_alloc

PATCH Applied Sidhartha Kumar 3 participants 3 messages Dec 3, 2025 – Dec 16, 2025 Maple tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maple_tree: remove struct maple_alloc

struct maple_alloc is deprecated after the maple tree conversion to sheaves, remove the references from the header file.

---
 include/linux/maple_tree.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/maple_tree.h +0 -8
index 66f98a3da8d8..1323c28a7470 100644
@@ -129,13 +129,6 @@ struct maple_arange_64 {
 	struct maple_metadata meta;
 };
 
-struct maple_alloc {
-	unsigned long total;
-	unsigned char node_count;
-	unsigned int request_count;
-	struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
-};
-
 struct maple_topiary {
 	struct maple_pnode *parent;
 	struct maple_enode *next; /* Overlaps the pivot */
@@ -306,7 +299,6 @@ struct maple_node {
 		};
 		struct maple_range_64 mr64;
 		struct maple_arange_64 ma64;
-		struct maple_alloc alloc;
 	};
 };
 
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Sidhartha Kumar

struct maple_alloc is deprecated after the maple tree conversion to sheaves, remove the references from the header file.

---
 include/linux/maple_tree.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/maple_tree.h +0 -7
index 66f98a3da8d8..1323c28a7470 100644
@@ -129,13 +129,6 @@ struct maple_arange_64 {
 	struct maple_metadata meta;
 };
 
-struct maple_alloc {
-	unsigned long total;
-	unsigned char node_count;
-	unsigned int request_count;
-	struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
-};
-
 struct maple_topiary {
 	struct maple_pnode *parent;
 	struct maple_enode *next; /* Overlaps the pivot */

include/linux/maple_tree.h struct maple_node { · line 309

Quoted 4 lines
include/linux/maple_tree.h +0 -1
@@ -306,7 +299,6 @@ struct maple_node {
 		};
 		struct maple_range_64 mr64;
 		struct maple_arange_64 ma64;
-		struct maple_alloc alloc;
Quoted 3 lines
include/linux/maple_tree.h +0 -0
 	};
 };
 
Reviewed-by on v1 1/1
#2 lore raw
In reply to Sidhartha Kumar
Quoted 4 lines · Sidhartha Kumar

struct maple_alloc is deprecated after the maple tree conversion to sheaves, remove the references from the header file.

Looks like I didn't respond to this one. Thanks Sid!

Quoted 33 lines
---
 include/linux/maple_tree.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/maple_tree.h +0 -8
index 66f98a3da8d8..1323c28a7470 100644
@@ -129,13 +129,6 @@ struct maple_arange_64 {
 	struct maple_metadata meta;
 };
 
-struct maple_alloc {
-	unsigned long total;
-	unsigned char node_count;
-	unsigned int request_count;
-	struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
-};
-
 struct maple_topiary {
 	struct maple_pnode *parent;
 	struct maple_enode *next; /* Overlaps the pivot */
@@ -306,7 +299,6 @@ struct maple_node {
 		};
 		struct maple_range_64 mr64;
 		struct maple_arange_64 ma64;
-		struct maple_alloc alloc;
 	};
 };
 
Signature · 1 line
2.43.0