From 5196e1326b05f771594d6d2bef497ed3e00df76d Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 22 Aug 2025 13:04:35 -0400 Subject: [PATCH] maple_copy: Increase slots to 3 Signed-off-by: Liam R. Howlett --- include/linux/maple_tree.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index 46f8c1359b42..3ad730c3290e 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -176,10 +176,17 @@ struct maple_copy { enum maple_type mt; } src[4]; /* Simulated node */ - void __rcu *slot[1]; - unsigned long gap[1]; + void __rcu *slot[3]; + unsigned long gap[3]; unsigned long min; - unsigned long max; + union { + unsigned long pivot[3]; + struct { + void *_pad[2]; + unsigned long max; + }; + }; + unsigned char end; /*Avoid passing these around */ unsigned char s_count; -- 2.51.0