]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
thp-reintroduce-split_huge_page-fix-2
authorKirill A. Shutemov <kirill@shutemov.name>
Wed, 21 Oct 2015 22:03:41 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:41 +0000 (09:03 +1100)
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c

index dc3cb08d3095bc1d31be4593e23f0f8bd9e6544f..457a2277a3881f554fde227391c294baac10b09e 100644 (file)
@@ -3038,6 +3038,7 @@ static void unfreeze_page_vma(struct vm_area_struct *vma, struct page *page,
                        continue;
 
                entry = pte_mkold(mk_pte(page, vma->vm_page_prot));
+               entry = pte_mkdirty(entry);
                if (is_write_migration_entry(swp_entry))
                        entry = maybe_mkwrite(entry, vma);