Skip to contentSkip to conversation

maple_tree-shrink-struct-maple_tree-from-24-to-16-bytes-on-lp64.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Aug 24, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: shrink struct maple_tree
has been removed from the -mm tree. Its filename was

     maple_tree-shrink-struct-maple_tree-from-24-to-16-bytes-on-lp64.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Mateusz Guzik <[email protected]>
Subject: maple_tree: shrink struct maple_tree
Date: Tue, 22 Aug 2023 00:51:45 +0200

Pack the members of struct maple_tree to avoid holes on 64-bit. The size shrinks from 24 to 16 bytes which will save eight bytes in every structure which embeds it.

---

 include/linux/maple_tree.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/maple_tree.h renamed from include/linux/maple_tree.h~maple_tree-shrink-struct-maple_tree-from-24-to-16-bytes-on-lp64 +1 -1
@@ -220,8 +220,8 @@ struct maple_tree {
 		spinlock_t	ma_lock;
 		lockdep_map_p	ma_external_lock;
 	};
-	void __rcu      *ma_root;
 	unsigned int	ma_flags;
+	void __rcu      *ma_root;
 };
 
 /**

_

Patches currently in -mm which might be from [email protected] are