Skip to contentSkip to conversation

mmzone-introduce-folio_migratetype.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 19, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mmzone: introduce folio_migratetype()
has been removed from the -mm tree. Its filename was
mmzone-introduce-folio_migratetype.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: "Vishal Moola (Oracle)" <[email protected]>
Subject: mmzone: introduce folio_migratetype()
Date: Tue, 13 Jun 2023 19:13:09 -0700

Introduce folio_migratetype() as a folio equivalent for get_pageblock_migratetype(). This function intends to return the migratetype the folio is located in, hence the name choice.

---

 include/linux/mmzone.h |    3 +++
 1 file changed, 3 insertions(+)
include/linux/mmzone.h renamed from include/linux/mmzone.h~mmzone-introduce-folio_migratetype +3 -0
@@ -105,6 +105,9 @@ extern int page_group_by_mobility_disabl
 #define get_pageblock_migratetype(page)					\
 	get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
 
+#define folio_migratetype(folio)				\
+	get_pfnblock_flags_mask(&folio->page, folio_pfn(folio),		\
+			MIGRATETYPE_MASK)
 struct free_area {
 	struct list_head	free_list[MIGRATE_TYPES];
 	unsigned long		nr_free;

_

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

afs-fix-dangling-folio-ref-counts-in-writeback.patch afs-fix-waiting-for-writeback-then-skipping-folio.patch