mm-page_alloc-clear-pagebuddy-using-__clearpagebuddy-for-bad-pages.patch removed from -mm tree
The quilt patch titled
Subject: mm/page_alloc: clear PageBuddy using __ClearPageBuddy() for bad pages
has been removed from the -mm tree. Its filename was
mm-page_alloc-clear-pagebuddy-using-__clearpagebuddy-for-bad-pages.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: David Hildenbrand <[email protected]>
Subject: mm/page_alloc: clear PageBuddy using __ClearPageBuddy() for bad pages
Date: Wed, 29 May 2024 13:19:02 +0200
Let's stop using page_mapcount_reset() and clear PageBuddy using __ClearPageBuddy() instead.
Signed-off-by David Hildenbrand <[email protected]>
Cc Hyeonggon Yoo <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Mike Rapoport (IBM) <[email protected]>
Cc Minchan Kim <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/page_alloc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-clear-pagebuddy-using-__clearpagebuddy-for-bad-pages +4 -2
@@ -498,7 +498,8 @@ static void bad_page(struct page *page,dump_stack (); out:/* Leave bad fields for debug, except PageBuddy could make trouble */ -page_mapcount_reset (page);/* remove PageBuddy */ +if (PageBuddy (page)) +__ClearPageBuddy (page);add_taint (TAINT_BAD_PAGE ,LOCKDEP_NOW_UNRELIABLE ); }
@@ -1351,7 +1352,8 @@ static void check_new_page_bad(struct pa {if (unlikely (page->flags & __PG_HWPOISON)) {/* Don't complain about hwpoisoned pages */ -page_mapcount_reset (page);/* remove PageBuddy */ +if (PageBuddy (page)) +__ClearPageBuddy (page);return ; }
_
Patches currently in -mm which might be from [email protected] are