Skip to contentSkip to conversation

mm-khugepaged-use-kmem_cache.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 3, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/khugepaged: use KMEM_CACHE()
has been removed from the -mm tree. Its filename was
mm-khugepaged-use-kmem_cache.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: Wei Yang <[email protected]>
Subject: mm/khugepaged: use KMEM_CACHE()
Date: Wed, 1 Oct 2025 09:19:00 +0000

We got some late review commits during review of commit b4c9ffb54b32 ("mm/khugepaged: remove definition of struct khugepaged_mm_slot"). No need to keep the old cache name "khugepaged_mm_slot", let's simply use KMEM_CACHE().

Fixes b4c9ffb54b32 ("mm/khugepaged: remove definition of struct khugepaged_mm_slot")
Cc Kiryl Shutsemau <[email protected]>
Cc xu xin <[email protected]>
Cc SeongJae Park <[email protected]>
Cc Nico Pache <[email protected]>
Cc Baolin Wang <[email protected]>
Cc Barry Song <[email protected]>
Cc Chengming Zhou <[email protected]>
Cc Dan Carpenter <[email protected]>
Cc Kiryl Shutsemau <[email protected]>
Cc Liam Howlett <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Ryan Roberts <[email protected]>

---

 mm/khugepaged.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
mm/khugepaged.c renamed from mm/khugepaged.c~mm-khugepaged-use-kmem_cache +1 -4
@@ -376,10 +376,7 @@ int hugepage_madvise(struct vm_area_stru
 
 int __init khugepaged_init(void)
 {
-	mm_slot_cache = kmem_cache_create("khugepaged_mm_slot",
-					  sizeof(struct mm_slot),
-					  __alignof__(struct mm_slot),
-					  0, NULL);
+	mm_slot_cache = KMEM_CACHE(mm_slot, 0);
 	if (!mm_slot_cache)
 		return -ENOMEM;
 

_

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