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 <email@example.com> Acked-by: Kirill A. Shutemov <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Showing with 16 additions and 24 deletions