Commit:     97ee052461446526e1de7236497e6f1b1ffedf8c
Parent:     4106f83a9f86afc423557d0d92ebf4b3f36728c1
Author:     KAMEZAWA Hiroyuki <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 16 01:25:43 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 09:42:59 2007 -0700

    flush cache before installing new page at migraton
    In migration, a new page should be cache flushed before set_pte() in some
    archs which have virtually-tagged cache.
    Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]>
    Cc: "Luck, Tony" <[EMAIL PROTECTED]>
    Cc: Christoph Lameter <[EMAIL PROTECTED]>
    Cc: Hugh Dickins <[EMAIL PROTECTED]>
    Cc: Nick Piggin <[EMAIL PROTECTED]>
    Acked-by: David S. Miller <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/migrate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/migrate.c b/mm/migrate.c
index 71c38b4..ea11ddb 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -171,6 +171,7 @@ static void remove_migration_pte(struct vm_area_struct *vma,
        pte = pte_mkold(mk_pte(new, vma->vm_page_prot));
        if (is_write_migration_entry(entry))
                pte = pte_mkwrite(pte);
+       flush_cache_page(vma, addr, pte_pfn(pte));
        set_pte_at(mm, addr, ptep, pte);
        if (PageAnon(new))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to