|
@@ -2744,7 +2744,7 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address,
|
|
if (write)
|
|
if (write)
|
|
entry = maybe_mkwrite(pte_mkdirty(entry), vma);
|
|
entry = maybe_mkwrite(pte_mkdirty(entry), vma);
|
|
else if (pte_file(*pte) && pte_file_soft_dirty(*pte))
|
|
else if (pte_file(*pte) && pte_file_soft_dirty(*pte))
|
|
- pte_mksoft_dirty(entry);
|
|
|
|
|
|
+ entry = pte_mksoft_dirty(entry);
|
|
if (anon) {
|
|
if (anon) {
|
|
inc_mm_counter_fast(vma->vm_mm, MM_ANONPAGES);
|
|
inc_mm_counter_fast(vma->vm_mm, MM_ANONPAGES);
|
|
page_add_new_anon_rmap(page, vma, address);
|
|
page_add_new_anon_rmap(page, vma, address);
|