Merge branch 'linus' into sched/core
authorIngo Molnar <mingo@kernel.org>
Fri, 1 Nov 2013 07:10:58 +0000 (08:10 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 1 Nov 2013 07:24:41 +0000 (08:24 +0100)
Resolve cherry-picking conflicts:

Conflicts:
mm/huge_memory.c
mm/memory.c
mm/mprotect.c

See this upstream merge commit for more details:

  52469b4fcd4f Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
MAINTAINERS
arch/arm/include/asm/Kbuild
include/linux/sched.h
mm/huge_memory.c
mm/memory.c
mm/migrate.c
mm/mprotect.c

diff --cc MAINTAINERS
Simple merge
index 4e6838d4ddf6d6b30278e3d1feb255339b7ecb33,59ceae8f3c959616851a21ba3f08ae18941146ca..1a7024b413511d6742f6fb928407603c648c77e3
@@@ -31,6 -31,4 +31,5 @@@ generic-y += termbits.
  generic-y += termios.h
  generic-y += timex.h
  generic-y += trace_clock.h
- generic-y += types.h
  generic-y += unaligned.h
 +generic-y += preempt.h
Simple merge
Simple merge
diff --cc mm/memory.c
Simple merge
diff --cc mm/migrate.c
Simple merge
diff --cc mm/mprotect.c
index a0302ac0be985393256a99070becec949f92ae46,412ba2b7326a2898d25e4b0a43b3dfd921a389a1..a597f2ffcd6fc873a5f5b9779e4e79ac022bb2fe
@@@ -89,11 -100,12 +90,13 @@@ static unsigned long change_pte_range(s
                                 * just be safe and disable write
                                 */
                                make_migration_entry_read(&entry);
-                               set_pte_at(mm, addr, pte,
-                                       swp_entry_to_pte(entry));
+                               newpte = swp_entry_to_pte(entry);
+                               if (pte_swp_soft_dirty(oldpte))
+                                       newpte = pte_swp_mksoft_dirty(newpte);
+                               set_pte_at(mm, addr, pte, newpte);
 +
 +                              pages++;
                        }
 -                      pages++;
                }
        } while (pte++, addr += PAGE_SIZE, addr != end);
        arch_leave_lazy_mmu_mode();