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
@@@ -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
@@@ -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();