mm-use-zone-lock-guard-in-put_page_back_buddy.patch removed from -mm tree
The quilt patch titled
Subject: mm: use zone lock guard in put_page_back_buddy()
has been removed from the -mm tree. Its filename was
mm-use-zone-lock-guard-in-put_page_back_buddy.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: Dmitry Ilvokhin <[email protected]>
Subject: mm: use zone lock guard in put_page_back_buddy()
Date: Wed, 29 Apr 2026 12:02:11 +0000
Use spinlock_irqsave zone lock guard in put_page_back_buddy() to replace the explicit lock/unlock pattern with automatic scope-based cleanup.
---
mm/page_alloc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-use-zone-lock-guard-in-put_page_back_buddy +4 -8
@@ -7675,23 +7675,19 @@ bool take_page_off_buddy(struct page *pabool put_page_back_buddy (struct page *page) {struct zone *zone =page_zone (page); -unsigned long flags; -bool ret = false; -spin_lock_irqsave (&zone->lock, flags); +guard (spinlock_irqsave)(&zone->lock);if (put_page_testzero (page)) {unsigned long pfn =page_to_pfn (page);int migratetype =get_pfnblock_migratetype (page, pfn);ClearPageHWPoisonTakenOff (page);__free_one_page (page, pfn, zone,0 , migratetype,FPI_NONE ); -if (TestClearPageHWPoison (page)) { - ret = true; - } +if (TestClearPageHWPoison (page)) +return true; } -spin_unlock_irqrestore (&zone->lock, flags); -return ret; +return false; }#endif
_
Patches currently in -mm which might be from [email protected] are
mm-page_alloc-fix-defrag_mode-for-non-reclaimable-allocations.patch