Skip to contentSkip to conversation

mm-use-filemap_get_entry-in-filemap_get_incore_folio.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: use filemap_get_entry in filemap_get_incore_folio
has been removed from the -mm tree. Its filename was
mm-use-filemap_get_entry-in-filemap_get_incore_folio.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: Christoph Hellwig <[email protected]>
Subject: mm: use filemap_get_entry in filemap_get_incore_folio
Date: Tue, 7 Mar 2023 15:34:06 +0100

filemap_get_incore_folio wants to look at the details of xa_is_value entries, but doesn't need any of the other logic in filemap_get_folio. Switch it to use the lower-level filemap_get_entry interface.

---

 mm/swap_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap_state.c renamed from mm/swap_state.c~mm-use-filemap_get_entry-in-filemap_get_incore_folio +1 -1
@@ -386,7 +386,7 @@ struct folio *filemap_get_incore_folio(s
 {
 	swp_entry_t swp;
 	struct swap_info_struct *si;
-	struct folio *folio = __filemap_get_folio(mapping, index, FGP_ENTRY, 0);
+	struct folio *folio = filemap_get_entry(mapping, index);
 
 	if (!xa_is_value(folio))
 		goto out;

_

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