diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c index 1ce2e2a734fc..e98ecad2b9c8 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -3115,6 +3115,8 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
3115 | exclusive = 1; | 3115 | exclusive = 1; |
3116 | } | 3116 | } |
3117 | flush_icache_page(vma, page); | 3117 | flush_icache_page(vma, page); |
3118 | if (pte_swp_soft_dirty(orig_pte)) | ||
3119 | pte = pte_mksoft_dirty(pte); | ||
3118 | set_pte_at(mm, address, page_table, pte); | 3120 | set_pte_at(mm, address, page_table, pte); |
3119 | if (page == swapcache) | 3121 | if (page == swapcache) |
3120 | do_page_add_anon_rmap(page, vma, address, exclusive); | 3122 | do_page_add_anon_rmap(page, vma, address, exclusive); |