Skip to contentSkip to conversation

linux-next: manual merge of the folio tree with the maple tree

DISCUSSION Stephen Rothwell 1 participant 1 message Feb 17, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

mm/oom_kill.c

between commit:

4a9727878b42 ("mm/oom_kill: Use maple tree iterators instead of vma linked list")

from the maple tree and commit:

ad56e23dec9a ("mm/munlock: delete munlock_vma_pages_all(), allow oomreap")

from the folio 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/oom_kill.c
index 9cbc05fa356c,6b875acabd1e..000000000000
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@@ -526,8 -525,8 +526,8 @@@ bool __oom_reap_task_mm(struct mm_struc
  	 */
  	set_bit(MMF_UNSTABLE, &mm->flags);
  
 -	for (vma = mm->mmap ; vma; vma = vma->vm_next) {
 +	for_each_vma(vmi, vma) {
- 		if (!can_madv_lru_vma(vma))
+ 		if (vma->vm_flags & (VM_HUGETLB|VM_PFNMAP))
  			continue;
  
  		/*