Skip to contentSkip to conversation

ratelimit-convert-flags-to-int-to-save-8-bytes-in-size.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Sep 2, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ratelimit: convert flags to int to save 8 bytes in size
has been removed from the -mm tree. Its filename was
ratelimit-convert-flags-to-int-to-save-8-bytes-in-size.patch

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

------------------------------------------------------
From: Mateusz Guzik <[email protected]>
Subject: ratelimit: convert flags to int to save 8 bytes in size
Date: Sat, 17 Aug 2024 14:37:54 +0200

Only bit 1 is used, making an unsigned long a total overkill.

This brings it from 40 to 32 bytes, which in turn shrinks user_struct from 136 to 128 bytes. Since the latter is allocated with hwalign, this means the total usage goes down from 192 to 128 bytes per object.

No functional changes.

---

 include/linux/ratelimit_types.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/ratelimit_types.h renamed from include/linux/ratelimit_types.h~ratelimit-convert-flags-to-int-to-save-8-bytes-in-size +1 -1
@@ -19,8 +19,8 @@ struct ratelimit_state {
 	int		burst;
 	int		printed;
 	int		missed;
+	unsigned int	flags;
 	unsigned long	begin;
-	unsigned long	flags;
 };
 
 #define RATELIMIT_STATE_INIT_FLAGS(name, interval_init, burst_init, flags_init) { \

_

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

mm-hugetlb-sort-out-global-lock-annotations.patch