mm: save soft-dirty bits on swapped pages
[deliverable/linux.git] / mm / memory.c
index 1ce2e2a734fc2b0812845279a69cb87f48588d3e..e98ecad2b9c8b7c1454dd3d52e809c49306ef491 100644 (file)
@@ -3115,6 +3115,8 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
                exclusive = 1;
        }
        flush_icache_page(vma, page);
+       if (pte_swp_soft_dirty(orig_pte))
+               pte = pte_mksoft_dirty(pte);
        set_pte_at(mm, address, page_table, pte);
        if (page == swapcache)
                do_page_add_anon_rmap(page, vma, address, exclusive);
This page took 0.024581 seconds and 5 git commands to generate.