mm-move-set-clear_compound_head-next-to-compound_head.patch removed from -mm tree
The quilt patch titled
Subject: mm: move set/clear_compound_head() next to compound_head()
has been removed from the -mm tree. Its filename was
mm-move-set-clear_compound_head-next-to-compound_head.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: Kiryl Shutsemau <[email protected]>
Subject: mm: move set/clear_compound_head() next to compound_head()
Date: Fri, 27 Feb 2026 19:42:42 +0000
Move set_compound_head() and clear_compound_head() to be adjacent to the compound_head() function in page-flags.h.
These functions encode and decode the same compound_info field, so keeping them together makes it easier to verify their logic is consistent, especially when the encoding changes.
---
include/linux/page-flags.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
include/linux/page-flags.h renamed from include/linux/page-flags.h~mm-move-set-clear_compound_head-next-to-compound_head +11 -11
@@ -290,6 +290,17 @@ static __always_inline unsigned long _co#define compound_head (page) ((typeof(page))_compound_head(page)) +static __always_inline void set_compound_head(struct page *tail, +const struct page *head,unsigned int order) +{ +WRITE_ONCE (tail->compound_info, (unsigned long )head +1 ); +} + +static __always_inline void clear_compound_head(struct page *page) +{ +WRITE_ONCE (page->compound_info,0 ); +} +/** * page_folio - Converts from page to folio. * @p: The page.
@@ -870,17 +881,6 @@ static inline bool folio_test_large(consreturn folio_test_head (folio); } -static __always_inline void set_compound_head(struct page *tail, -const struct page *head,unsigned int order) -{ -WRITE_ONCE (tail->compound_info, (unsigned long )head +1 ); -} - -static __always_inline void clear_compound_head(struct page *page) -{ -WRITE_ONCE (page->compound_info,0 ); -} -#ifdef CONFIG_TRANSPARENT_HUGEPAGE static inline void ClearPageCompound (struct page *page) {
_
Patches currently in -mm which might be from [email protected] are