Skip to contentSkip to conversation

mm-migrate-remove-the-eexist-conversion-for-move_pages.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 20, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/migrate: remove the -EEXIST conversion for move_pages()
has been removed from the -mm tree. Its filename was
mm-migrate-remove-the-eexist-conversion-for-move_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: Wei Yang <[email protected]>
Subject: mm/migrate: remove the -EEXIST conversion for move_pages()
Date: Mon, 7 Jul 2025 06:57:11 +0000

The -EEXIST conversion is introduced in commit 65462462ffb2 ("mm/gup:
follow_pfn_pte(): -EEXIST cleanup"), since follow_page() may call follow_pfn_pte() which may return -EEXIST.

But after commit 7dff875c9436 ("mm/migrate: convert add_page_for_migration() from follow_page() to folio_walk"), it use folio_walk instead. This limit the error code and won't return -EEXIST.

Remove the error code conversion here.

---

 mm/migrate.c |    7 -------
 1 file changed, 7 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-migrate-remove-the-eexist-conversion-for-move_pages +0 -7
@@ -2363,13 +2363,6 @@ static int do_pages_move(struct mm_struc
 		}
 
 		/*
-		 * The move_pages() man page does not have an -EEXIST choice, so
-		 * use -EFAULT instead.
-		 */
-		if (err == -EEXIST)
-			err = -EFAULT;
-
-		/*
 		 * If the page is already on the target node (!err), store the
 		 * node, otherwise, store the err.
 		 */

_

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