Revert "mm, thp: Do not make pmd/pud dirty without a reason"
This reverts commit 152e93af. It was a nice cleanup in theory, but as Nicolai Stange points out, we do need to make the page dirty for the copy-on-write case even when we didn't end up making it writable, since the dirty bit is what we use to check that we've gone through a COW cycle. Reported-by: Michal Hocko <firstname.lastname@example.org> Acked-by: Kirill A. Shutemov <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
Showing with 16 additions and 24 deletions