objpool-fix-the-overestimation-of-object-pooling-metadata-size.patch removed from -mm tree
The quilt patch titled
Subject: objpool: fix the overestimation of object pooling metadata size
has been removed from the -mm tree. Its filename was
objpool-fix-the-overestimation-of-object-pooling-metadata-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: zhouwenhao <[email protected]>
Subject: objpool: fix the overestimation of object pooling metadata size
Date: Mon, 2 Feb 2026 21:28:46 +0800
objpool uses struct objpool_head to store metadata information, and its cpu_slots member points to an array of pointers that store the addresses of the percpu ring arrays. However, the memory size allocated during the initialization of cpu_slots is nr_cpu_ids * sizeof(struct objpool_slot). On a 64-bit machine, the size of struct objpool_slot is 16 bytes, which is twice the size of the actual pointer required, and the extra memory is never be used, resulting in a waste of memory. Therefore, the memory size required for cpu_slots needs to be corrected.
---
lib/objpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/objpool.c renamed from lib/objpool.c~objpool-fix-the-overestimation-of-object-pooling-metadata-size +1 -1
@@ -142,7 +142,7 @@ int objpool_init(struct objpool_head *po pool->gfp = gfp & ~__GFP_ZERO; pool->context = context; pool->release = release; - slot_size = nr_cpu_ids *sizeof (struct objpool_slot ); + slot_size = nr_cpu_ids *sizeof (struct objpool_slot *); pool->cpu_slots =kzalloc (slot_size, pool->gfp);if (!pool->cpu_slots)return -ENOMEM ;
_
Patches currently in -mm which might be from [email protected] are