Skip to contentSkip to conversation

mm-slub-fix-max_order-usage-in-calculate_order.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Apr 6, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/slub: fix MAX_ORDER usage in calculate_order()
has been removed from the -mm tree. Its filename was
mm-slub-fix-max_order-usage-in-calculate_order.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: "Kirill A. Shutemov" <[email protected]>
Subject: mm/slub: fix MAX_ORDER usage in calculate_order()
Date: Wed, 15 Mar 2023 14:31:31 +0300

MAX_ORDER is not inclusive: the maximum allocation order buddy allocator can deliver is MAX_ORDER-1.

Fix MAX_ORDER usage in calculate_order().

---

 mm/slub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slub.c renamed from mm/slub.c~mm-slub-fix-max_order-usage-in-calculate_order +1 -1
@@ -4171,7 +4171,7 @@ static inline int calculate_order(unsign
 	/*
 	 * Doh this slab cannot be placed using slub_max_order.
 	 */
-	order = calc_slab_order(size, 1, MAX_ORDER, 1);
+	order = calc_slab_order(size, 1, MAX_ORDER - 1, 1);
 	if (order < MAX_ORDER)
 		return order;
 	return -ENOSYS;

_

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