Skip to contentSkip to conversation

linux-next: manual merge of the tip tree with the mm-stable tree

DISCUSSION Stephen Rothwell 1 participant 2 messages Jun 22, 2023 – Jul 11, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the tip tree got a conflict in:

mm/migrate.c

between commit:

c33c794828f2 ("mm: ptep_get() conversion")

from the mm-stable tree and commit:

23a219c1860b ("mm: Make pte_mkwrite() take a VMA")

from the tip tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 18 lines
Cheers,
Stephen Rothwell

diff --cc mm/migrate.c
index 6f4066425d47,8b46b722f1a4..000000000000
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@@ -220,8 -219,8 +220,8 @@@ static bool remove_migration_pte(struc
  		if (folio_test_dirty(folio) && is_migration_entry_dirty(entry))
  			pte = pte_mkdirty(pte);
  		if (is_writable_migration_entry(entry))
- 			pte = pte_mkwrite(pte);
+ 			pte = pte_mkwrite(pte, vma);
 -		else if (pte_swp_uffd_wp(*pvmw.pte))
 +		else if (pte_swp_uffd_wp(old_pte))
  			pte = pte_mkuffd_wp(pte);
  
  		if (folio_test_anon(folio) && !is_readable_migration_entry(entry))
#1 lore raw

Hi all,

Quoted 27 lines · On Thu, 22 Jun 2023 13:16:09 +1000 Stephen Rothwell <[email protected]>…

Today's linux-next merge of the tip tree got a conflict in:

mm/migrate.c

between commit:

c33c794828f2 ("mm: ptep_get() conversion")

from the mm-stable tree and commit:

23a219c1860b ("mm: Make pte_mkwrite() take a VMA")

from the tip tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

mm/migrate.c +0 -0
diff --cc mm/migrate.c
index 6f4066425d47,8b46b722f1a4..000000000000

mm/migrate.c

Quoted 10 lines
mm/migrate.c +1 -1
@@@ -220,8 -219,8 +220,8 @@@ static bool remove_migration_pte(struc
  		if (folio_test_dirty(folio) && is_migration_entry_dirty(entry))
  			pte = pte_mkdirty(pte);
  		if (is_writable_migration_entry(entry))
- 			pte = pte_mkwrite(pte);
+ 			pte = pte_mkwrite(pte, vma);
 -		else if (pte_swp_uffd_wp(*pvmw.pte))
 +		else if (pte_swp_uffd_wp(old_pte))
  			pte = pte_mkuffd_wp(pte);
 
  		if (folio_test_anon(folio) && !is_readable_migration_entry(entry))

This is now a conflict between the tip tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell